Write a special log handler for click