Ice 3.9
C++ API Reference
Loading...
Searching...
No Matches
Ice::Logger Class Referenceabstract

Represents Ice's abstraction for logging and tracing. More...

#include <Ice/Ice.h>

Public Member Functions

virtual LoggerPtr cloneWithPrefix (std::string prefix)=0
 Returns a clone of the logger with a new prefix.
virtual void error (const std::string &message)=0
 Logs an error message.
virtual std::string getPrefix ()=0
 Returns this logger's prefix.
virtual void print (const std::string &message)=0
 Prints a message.
virtual void trace (const std::string &category, const std::string &message)=0
 Logs a trace message.
virtual void warning (const std::string &message)=0
 Logs a warning message.

Detailed Description

Represents Ice's abstraction for logging and tracing.

Applications can provide their own logger by implementing this abstraction and setting a logger on the communicator.

Remarks
The Ice runtime calls print, trace, warning and error from contexts where exceptions cannot be handled, such as destructors and noexcept functions. Implementations of these functions must not throw exceptions: a thrown exception can terminate the process.
See also
InitializationData

Definition at line 25 of file Logger.h.


The documentation for this class was generated from the following file: