log handler skeleton code