RCF has a configurable logging subsystem which can be controlled through the
RCF::disableLogging() functions. To use these functions, you will need to include the
By default, logging is disabled. To enable logging, call
RCF::enableLogging() takes two optional parameters, allowing you to specify log level and log target.
The log level can range from 0 (no logging at all) to 4 (verbose logging). The default log level is 2.
The log target parameter can be one of the following:
|Log target||Log output location|
|Windows only. Log output appears in Visual Studio debug output window.|
|Log output appears on standard output.|
|Log output appears in the nominated file.|
|Log output is passed to a user-defined function.|
On Windows platforms, the default log target is
On non-Windows platforms, the default log target is
Finally, to disable logging, call
RCF::disableLogging() are internally threadsafe and can be called by multiple threads concurrently.