Logger Facility

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:

module Ice
    local interface Logger
        void print(string message);
        void trace(string category, string message);
        void warning(string message);
        void error(string message);
        string getPrefix();
        Logger cloneWithPrefix(string prefix);

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.)


See Also