Correct level test in logbook handler