cement.core.log
Cement core log module.
- class cement.core.log.LogHandler(**kw: Any)[source]
Bases:
LogInterface
,Handler
Log handler implementation.
- class cement.core.log.LogInterface(**kw: Any)[source]
Bases:
Interface
This 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
LogHandler
base class as a starting point.- abstract debug(msg: str) None [source]
Log to the
DEBUG
facility.- Parameters:
msg (str) – The message to log.
- abstract error(msg: str) None [source]
Log to the
ERROR
facility.- Parameters:
msg (str) – The message to log.
- abstract fatal(msg: str) None [source]
Log to the
FATAL
facility.- Parameters:
msg (str) – The message to log.
- abstract info(msg: str) None [source]
Log to the
INFO
facility.- Parameters:
msg (str) – The message to log.