WIP
Only log debug messages to console if loggingEnabled pref is set.
Finished feature 49309135/debug-messages.