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 6.3
Copyright © 2018, Rogue Wave Software, Inc. All Rights Reserved.