xcp.logger
Logging support with backwards compatibility for xelogging
-
xcp.logger.closeLogs()[source]
Close all logs
-
xcp.logger.critical(*al, **ad)[source]
-
xcp.logger.debug(*al, **ad)[source]
-
xcp.logger.error(*al, **ad)[source]
-
xcp.logger.info(*al, **ad)[source]
-
xcp.logger.log(txt)[source]
Write txt to the log(s)
-
xcp.logger.logException(e)[source]
Formats exception and logs it
-
xcp.logger.logToStderr(level=20)[source]
Log to stderr
-
xcp.logger.logToStdout(level=20)[source]
Log to stdout
-
xcp.logger.logToSyslog(ident='sphinx-build', level=20, facility=1)[source]
Log to syslog
-
xcp.logger.openLog(lfile: str | TextIO, level: int = 20) → bool[source]
Add a new file target to be logged to
-
xcp.logger.warning(*al, **ad)[source]