Log debug levels to the log file.

Allows plugin to log messages that aren't important when looking at the
console, but can be useful when reporting errors.