cement.core.log
Cement core log module.
- class cement.core.log.LogHandler(**kw: Any)[source]
Bases:
LogInterface,HandlerLog handler implementation.
- class cement.core.log.LogInterface(**kw: Any)[source]
Bases:
InterfaceThis class defines the Log Interface. Handlers that implement this interface must provide the methods and attributes defined below. In general, most implementations should sub-class from the provided
LogHandlerbase class as a starting point.- abstractmethod debug(msg: str) None[source]
Log to the
DEBUGfacility.- Parameters:
msg (str) – The message to log.
- abstractmethod error(msg: str) None[source]
Log to the
ERRORfacility.- Parameters:
msg (str) – The message to log.
- abstractmethod fatal(msg: str) None[source]
Log to the
FATALfacility.- Parameters:
msg (str) – The message to log.
- abstractmethod info(msg: str) None[source]
Log to the
INFOfacility.- Parameters:
msg (str) – The message to log.