lsst.log  22.0.1-7-gba73697+283d9d2f1a
Public Member Functions | List of all members
lsst.log.log.logContinued.MDCDict Class Reference
Inheritance diagram for lsst.log.log.logContinued.MDCDict:

Public Member Functions

def __getitem__ (self, str name)
 
def __str__ (self)
 
def __repr__ (self)
 

Detailed Description

Dictionary for MDC data.

This is internal class used for better formatting of MDC in Python logging
output. It behaves like `defaultdict(str)` but overrides ``__str__`` and
``__repr__`` method to produce output better suited for logging records.

Member Function Documentation

◆ __getitem__()

def lsst.log.log.logContinued.MDCDict.__getitem__ (   self,
str  name 
)
Returns value for a given key or empty string for missing key.

◆ __str__()

def lsst.log.log.logContinued.MDCDict.__str__ (   self)
Return string representation, strings are interpolated without
quotes.

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