Hotfix logging compile error

Fixed compile problem and worked code to store the console attributes at LoggerHandler creation and revert the console back to these attributes at destruction.