xcp.logger

Logging support with backwards compatibility for xelogging

xcp.logger.closeLogs()[source]

Close all logs

xcp.logger.critical()[source]
xcp.logger.debug()[source]
xcp.logger.error()[source]
xcp.logger.info()[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()[source]