ButlerLogRecord¶
- class lsst.daf.butler.logging.ButlerLogRecord(*, name: str, asctime: datetime, message: str, levelno: int, levelname: str, filename: str, pathname: str, lineno: int, funcName: str | None = None, process: int, processName: str, exc_info: str | None = None, MDC: dict[str, str])¶
- Bases: - BaseModel- A model representing a - logging.LogRecord.- A - LogRecordalways uses the current time in its record when recreated and that makes it impossible to use it as a serialization format. Instead have a local representation of a- LogRecordthat matches Butler needs.- Attributes Summary - Configuration for the model, should be a dictionary conforming to [ - ConfigDict][pydantic.config.ConfigDict].- Methods Summary - format([log_format])- Format this record. - from_record(record)- Create a new instance from a - LogRecord.- Attributes Documentation - model_config: ClassVar[ConfigDict] = {'frozen': True}¶
- Configuration for the model, should be a dictionary conforming to [ - ConfigDict][pydantic.config.ConfigDict].
 - Methods Documentation - classmethod from_record(record: LogRecord) ButlerLogRecord¶
- Create a new instance from a - LogRecord.- Parameters:
- recordlogging.LogRecord
- The record from which to extract the relevant information. 
 
- record