Log¶
-
class
lsst.log.Log¶ Bases:
pybind11_builtins.pybind11_objectAttributes Summary
Methods Summary
MDC(arg0, arg1)MDCRegisterInit(arg0)MDCRemove(arg0)configure(*args, **kwargs)Overloaded function.
configure_prop(arg0)debug(fmt, *args)debugf(fmt, *args, **kwargs)Forward log messages to LSST logging system.
error(fmt, *args)errorf(fmt, *args, **kwargs)fatal(fmt, *args)fatalf(fmt, *args, **kwargs)getChild(self, arg0)getLevel(self)getLogger(*args, **kwargs)Overloaded function.
getName(self)info(fmt, *args)infof(fmt, *args, **kwargs)isDebugEnabled(self)isEnabledFor(self, arg0)isErrorEnabled(self)isFatalEnabled(self)isInfoEnabled(self)isTraceEnabled(self)isWarnEnabled(self)logMsg(self, arg0, arg1, arg2, arg3, arg4)lwpID(self)setLevel(self, arg0)trace(fmt, *args)tracef(fmt, *args, **kwargs)Forward log messages to Python
loggingwarn(fmt, *args)warnf(fmt, *args, **kwargs)warning(fmt, *args)Attributes Documentation
-
DEBUG= 10000¶
-
ERROR= 40000¶
-
FATAL= 50000¶
-
INFO= 20000¶
-
TRACE= 5000¶
-
UsePythonLogging= False¶
-
WARN= 30000¶
Methods Documentation
-
static
configure(*args, **kwargs)¶ Overloaded function.
configure() -> None
configure(arg0: str) -> None
-
debug(fmt, *args)¶
-
debugf(fmt, *args, **kwargs)¶
-
classmethod
doNotUsePythonLogging()¶ Forward log messages to LSST logging system.
Notes
This is the default state.
-
error(fmt, *args)¶
-
errorf(fmt, *args, **kwargs)¶
-
fatal(fmt, *args)¶
-
fatalf(fmt, *args, **kwargs)¶
-
getChild(self:lsst.log.Log, arg0: str) →lsst.log.Log¶
-
static
getDefaultLogger() →lsst.log.Log¶
-
getLevel(self:lsst.log.Log) → int¶
-
static
getLogger(*args, **kwargs)¶ Overloaded function.
getLogger(arg0: lsst.log.log.log.Log) -> lsst.log.log.log.Log
getLogger(arg0: str) -> lsst.log.log.log.Log
-
getName(self:lsst.log.Log) → str¶
-
info(fmt, *args)¶
-
infof(fmt, *args, **kwargs)¶
-
isDebugEnabled(self:lsst.log.Log) → bool¶
-
isEnabledFor(self:lsst.log.Log, arg0: int) → bool¶
-
isErrorEnabled(self:lsst.log.Log) → bool¶
-
isFatalEnabled(self:lsst.log.Log) → bool¶
-
isInfoEnabled(self:lsst.log.Log) → bool¶
-
isTraceEnabled(self:lsst.log.Log) → bool¶
-
isWarnEnabled(self:lsst.log.Log) → bool¶
-
lwpID(self:lsst.log.Log) → int¶
-
setLevel(self:lsst.log.Log, arg0: int) → None¶
-
trace(fmt, *args)¶
-
tracef(fmt, *args, **kwargs)¶
-
classmethod
usePythonLogging()¶ Forward log messages to Python
loggingNotes
This is useful for unit testing when you want to ensure that log messages are captured by the testing environment as distinct from standard output.
This state only affects messages sent to the
lsst.logpackage from Python.
-
warn(fmt, *args)¶
-
warnf(fmt, *args, **kwargs)¶
-
warning(fmt, *args)¶
-