Enhancement and bug fix for chanlog