Logger

Module: polygraphy.tools.args

class LoggerArgs[source]

Bases: BaseArgs

Logging: logging and debug output

parse_impl(args)[source]

Parses command-line arguments and populates the following attributes:

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

verbosity

Per-path logging verbosities. A key of “” represents the default verbosity.

Type:

Dict[str, str]

get_logger()[source]

Gets the global logger after applying command-line options.

Returns:

G_LOGGER