Logger

Module: polygraphy.tools.args

class LoggerArgs[source]

Bases: polygraphy.tools.args.base.BaseArgs

Logging: logging and debug output

parse_impl(args)[source]

Parses command-line arguments and populates the following attributes:

severity_level

The severity level the logger should be set to. A value >= 4 correspond to ULTRA_VERBOSE, while < -4 corresponds to CRITICAL. Any values in between map to intermediate severities.

Type

int

silent

Whether to disable all logging output.

Type

bool

log_format

Formatting options for the logger.

Type

List[str]

log_file

Path to a file where logging output should be written.

Type

str

get_logger()[source]

Gets the global logger after applying command-line options.

Returns

G_LOGGER