Data Classes¶
Predefined Data Classes¶
- class zlogging._data.ASCIIInfo(path, open, close, data, exit_with_error)[source]¶
Bases:
Info
Parsed log info for ASCII logs.
The ASCII log will be stored as in this
dataclass
, as introduced in PEP 557.- Parameters:
path (
PathLike
[str
]) – The value is specified in the ASCII log file under# path
directive.open (
datetime
) – The value is specified in the ASCII log file under# open
directive.close (
datetime
) – The value is specified in the ASCII log file under# close
directive.data (
list
[Model
]) – The log records parsed as alist
ofModel
per line.exit_with_error (
bool
) – When exit with error, the ASCII log file doesn’t has a# close
directive.