FunctionGetLogConsoleWriter - jachguate/jachLogMgr GitHub Wiki

Unit: ujachLogAuto

Declaration: function GetLogConsoleWriter: TjachLogToConsole;

GetLogConsoleWriter function

This function returns the instance of TjachLogToConsole that is auto-created and configured at program start by the ujachLogAuto unit.

You can use this function to get access to the log writer object to change it's default configuration. Be careful and make the configuration changes in the main thread and before any log output is written for consistency.

Make sure you use this only in Console applications. In a GUI/Service application, the function will return nil.