Redirecting Messages to an Application Window
Some applications may already have their own output window and thus do not need a separate text window to display trace and error messages. In this case, the application should assign a callback function by calling the static member function IlsLogfile::Redirect.
enum IlsLogLevel {
ILS_LOG_UNSET,
ILS_LOG_DEBUG,
ILS_LOG_WARNING,
ILS_LOG_INFO,
ILS_LOG_ERROR,
ILS_LOG_FATALERROR,
ILS_LOG_MSG,
ILS_LOG_INTERNALERROR,
ILS_LOG_NOTHING
};
typedef void (*IlsLogfileMsgFunc)(const char*, IlsLogLevel);
IlsLogfile::Redirect(IlsLogfileMsgFunc);
If a callback is assigned, then it will be called with every complete error message or trace message to be displayed. The second parameter to the callback is for information. It indicates the error level of the message.
Version 6.3
Copyright © 2018, Rogue Wave Software, Inc. All Rights Reserved.