Include LogLevel in logging hook

Ensure that DEBUG messages are not kept.