RCFProto provides a configurable logging subsystem with 4 log levels and several log output options.
Logging is disabled by default. To enable it, call enableLogging()
:
RCF::enableLogging( RCF::LogToFile("path/to/rcfproto.log"), 4, "");
In this case we are setting the log level to 4 (highest), and directing log output to the given log file.
To disable logging, call disableLogging()
:
RCF::disableLogging();
Logging can also be directed to the debug window of Visual Studio (LogToDebugWindow
), the Windows event log
(LogToEventLog
), or standard
output (LogToStdout
). For more
information, see the reference documentation for these classes.