msticpy.init.logging module

Logging global config.

class msticpy.init.logging.LoggingConfig(log_file: str | None = None, log_level: int = 30)

Bases: NamedTuple

Logging configuration tuple.

Create new instance of LoggingConfig(log_file, log_level)

count(value, /)

Return number of occurrences of value.

index(value, start=0, stop=9223372036854775807, /)

Return first index of value.

Raises ValueError if the value is not present.

log_file: str | None

Alias for field number 0

log_level: int

Alias for field number 1

msticpy.init.logging.set_logging_level(log_level: int | str)

Set global logging level.

Parameters:

log_level (Union[int, str]) – Either an integer - one of logging.INFO, logging.WARNING, etc. or the name of a valid logging level.

Raises:

ValueError – If an invalid logging level is passed.

See also

logging

msticpy.init.logging.setup_logging()

Initiate logging.