Ice.Logger¶
- class Ice.Logger¶
Bases:
ABCRepresents Ice’s abstraction for logging and tracing.
Applications can provide their own logger by implementing this abstraction and setting a logger on the communicator.
The Ice runtime calls
print(),trace(),warning()anderror()from contexts where exceptions cannot be handled. Implementations of these methods must not raise exceptions: a raised exception can terminate the process.- abstractmethod print(message: str)¶
Prints a message.
The message is printed literally, without any decorations such as executable name or timestamp.
An implementation of this method must not raise exceptions.
- Parameters:
message (str) – The message to log.
- abstractmethod trace(category: str, message: str)¶
Logs a trace message.
An implementation of this method must not raise exceptions.
- abstractmethod warning(message: str)¶
Logs a warning message.
An implementation of this method must not raise exceptions.
- Parameters:
message (str) – The warning message to log.
- abstractmethod error(message: str)¶
Logs an error message.
An implementation of this method must not raise exceptions.
- Parameters:
message (str) – The error message to log.