Set custom log hook for ewmh