lsst.log g2079a07aa2+8986e19ce8
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | List of all members
lsst.log.log.logContinued.Log Class Reference

Public Member Functions

 usePythonLogging (cls)
 
 doNotUsePythonLogging (cls)
 
 name (self)
 
 level (self)
 
 parent (self)
 
 trace (self, fmt, *args)
 
 debug (self, fmt, *args)
 
 info (self, fmt, *args)
 
 warn (self, fmt, *args)
 
 warning (self, fmt, *args)
 
 error (self, fmt, *args)
 
 fatal (self, fmt, *args)
 
 critical (self, fmt, *args)
 
 __reduce__ (self)
 
 __repr__ (self)
 

Public Attributes

 UsePythonLogging
 

Static Public Attributes

bool UsePythonLogging = False
 
 CRITICAL = CRITICAL
 
 WARNING = WARNING
 

Protected Member Functions

 _log (self, level, use_format, fmt, *args, **kwargs)
 

Member Function Documentation

◆ __reduce__()

lsst.log.log.logContinued.Log.__reduce__ ( self)
Implement pickle support.

◆ doNotUsePythonLogging()

lsst.log.log.logContinued.Log.doNotUsePythonLogging ( cls)
Forward log messages to LSST logging system.

Notes
-----
This is the default state.

◆ parent()

lsst.log.log.logContinued.Log.parent ( self)
Returns the parent logger, or None if this is the root logger.

◆ usePythonLogging()

lsst.log.log.logContinued.Log.usePythonLogging ( cls)
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.

The documentation for this class was generated from the following file: