It should activate when a player is attack and if he attacks another player.
Also, is it really necessary for combat log to activate when you attack a mob (skeleton, zombie, etc)? I don't think so.
Combat log also activates if you attack an animal, that shouldn't be the case. That should be changed, in my opinion.