[IMPROVED] Allow debug console log to logfile

* Needs logging level set to 7 in security config
* Needs debugging enabled in global config
Merge pull request #1799 from MPOS/debug-to-logfile

[IMPROVED] Allow debug console log to logfile