setting hm log handler