Log

class lsst.log.Log

Bases: pybind11_builtins.pybind11_object

Attributes Summary

CRITICAL
DEBUG
ERROR
FATAL
INFO
TRACE
UsePythonLogging
WARN
WARNING
level
name
parent Returns the parent logger, or None if this is the root logger.

Methods Summary

MDC(arg0, arg1)
MDCRegisterInit(arg0)
MDCRemove(arg0)
configure(*args, **kwargs) Overloaded function.
configure_prop(arg0)
critical(fmt, *args)
debug(fmt, *args)
debugf(fmt, *args, **kwargs)

Deprecated since version v23.0.

doNotUsePythonLogging() Forward log messages to LSST logging system.
error(fmt, *args)
errorf(fmt, *args, **kwargs)

Deprecated since version v23.0.

fatal(fmt, *args)
fatalf(fmt, *args, **kwargs)

Deprecated since version v23.0.

getChild(self, arg0)
getDefaultLogger()
getEffectiveLevel(self)
getLevel(self)
getLogger(*args, **kwargs) Overloaded function.
getName(self)
info(fmt, *args)
infof(fmt, *args, **kwargs)

Deprecated since version v23.0.

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)

Deprecated since version v23.0.

usePythonLogging() Forward log messages to Python logging
warn(fmt, *args)
warnf(fmt, *args, **kwargs)

Deprecated since version v23.0.

warning(fmt, *args)

Attributes Documentation

CRITICAL = 50000
DEBUG = 10000
ERROR = 40000
FATAL = 50000
INFO = 20000
TRACE = 5000
UsePythonLogging = True
WARN = 30000
WARNING = 30000
level
name
parent

Returns the parent logger, or None if this is the root logger.

Methods Documentation

static MDC(arg0: str, arg1: str) → str
static MDCRegisterInit(arg0: function) → None
static MDCRemove(arg0: str) → None
static configure(*args, **kwargs)

Overloaded function.

  1. configure() -> None
  2. configure(arg0: str) -> None
static configure_prop(arg0: str) → None
critical(fmt, *args)
debug(fmt, *args)
debugf(fmt, *args, **kwargs)

Deprecated since version v23.0: f-string log messages are now deprecated to match python logging convention. Will be removed after v25

classmethod doNotUsePythonLogging()

Forward log messages to LSST logging system.

Notes

This is the default state.

error(fmt, *args)
errorf(fmt, *args, **kwargs)

Deprecated since version v23.0: f-string log messages are now deprecated to match python logging convention. Will be removed after v25

fatal(fmt, *args)
fatalf(fmt, *args, **kwargs)

Deprecated since version v23.0: f-string log messages are now deprecated to match python logging convention. Will be removed after v25

getChild(self: lsst.log.log.log.Log, arg0: str) → lsst.log.log.log.Log
static getDefaultLogger() → lsst.log.log.log.Log
getEffectiveLevel(self: lsst.log.log.log.Log) → int
getLevel(self: lsst.log.log.log.Log) → int
static getLogger(*args, **kwargs)

Overloaded function.

  1. getLogger(arg0: lsst.log.log.log.Log) -> lsst.log.log.log.Log
  2. getLogger(arg0: str) -> lsst.log.log.log.Log
getName(self: lsst.log.log.log.Log) → str
info(fmt, *args)
infof(fmt, *args, **kwargs)

Deprecated since version v23.0: f-string log messages are now deprecated to match python logging convention. Will be removed after v25

isDebugEnabled(self: lsst.log.log.log.Log) → bool
isEnabledFor(self: lsst.log.log.log.Log, arg0: int) → bool
isErrorEnabled(self: lsst.log.log.log.Log) → bool
isFatalEnabled(self: lsst.log.log.log.Log) → bool
isInfoEnabled(self: lsst.log.log.log.Log) → bool
isTraceEnabled(self: lsst.log.log.log.Log) → bool
isWarnEnabled(self: lsst.log.log.log.Log) → bool
logMsg(self: lsst.log.log.log.Log, arg0: int, arg1: str, arg2: str, arg3: int, arg4: str) → None
lwpID(self: lsst.log.log.log.Log) → int
setLevel(self: lsst.log.log.log.Log, arg0: int) → None
trace(fmt, *args)
tracef(fmt, *args, **kwargs)

Deprecated since version v23.0: f-string log messages are now deprecated to match python logging convention. Will be removed after v25

classmethod usePythonLogging()

Forward log messages to Python logging

Notes

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.log package from Python.

warn(fmt, *args)
warnf(fmt, *args, **kwargs)

Deprecated since version v23.0: f-string log messages are now deprecated to match python logging convention. Will be removed after v25

warning(fmt, *args)