PrevUpHomeNext

Logging

RCF has a configurable logging subsystem which can be controlled through the RCF::enableLogging() and RCF::disableLogging() functions.

By default, logging is disabled. To enable logging, call enableLogging():

TODOTODO

RCF::enableLogging() takes two optional parameters: log level and log target.

The log level can range from 0 (no logging at all) to 4 (maximum logging).

The log target parameter can be one of the following:

LogToDebugWindow: Windows only. Log output appears in Visual Studio debug output window. LogToStdout: Log output appears on standard output. LogToFile: Log output appears in the nominated file. LogToFunc: Log output is passed to a user-defined function.

On Windows platformd, the default log target is LogToDebugWindow.

On non-Windows platforms, the default log target is LogToStdout.

Finally, to disable logging, call RCF::disableLogging():

TODOTODO

RCF::enableLogging() and RCF::disableLogging() are internally threadsafe and can be called by multiple threads concurrently.


PrevUpHomeNext