Depending on the setting of various properties, the Ice run time produces trace, warning, or error messages. These messages are written via the Ice::Logger
interface:
{zcode:slice} module Ice { local interface Logger { void print(string message); void trace(string category, string message); void warning(string message); void error(string message); Logger cloneWithPrefix(string prefix); }; }; {zcode} |
The cloneWithPrefix
operation returns a new logger that logs to the same destination but with a different prefix. (The prefix is used to, for example, provide the name of the process writing the log messages.)