debug

Logs the debug logs to the logger if enabled Defaults to false