Appendices > Using Rogue Wave Server on Windows > Controlling Rogue Wave Server Error and Trace Messages > Disabling Error and Trace Messages Temporarily
 
Disabling Error and Trace Messages Temporarily
Occasionally, an application may want to disable all error and trace messages (for example, while trying to connect to a server that may not be running). In this case, the log level can be temporarily changed to ILS_LOG_NOTHING for the duration of the attempt. Remember that the application may be multi-threaded, and so you may lose important messages if this is not used with care.
Here is an example:
IlsLogLevel ol = IlsLogfile::SetLogLevel(ILS_LOG_NOTHING);
...
IlsLogfile::SetLogLevel(ol);

Version 5.8
Copyright © 2014, Rogue Wave Software, Inc. All Rights Reserved.