chatlog custom directive