mlrl.testbed.log.arguments module

Author: Michael Rapp (michael.rapp.ml@gmail.com)

Defines command line arguments for configuring the functionality to write log messages.

class mlrl.testbed.log.arguments.LogArguments

Bases: object

Defines command line arguments for configuring the functionality to write log messages.

LOG_LEVEL = <mlrl.util.cli.EnumArgument object>
LOG_PLAIN = <mlrl.util.cli.FlagArgument object>
LOG_WIDTH = <mlrl.util.cli.IntArgument object>
class mlrl.testbed.log.arguments.LogLevel(*values)

Bases: Enum

Specifies all valid textual representations of log levels.

DEBUG = 10
ERROR = 40
INFO = 20
WARNING = 30
mlrl.testbed.log.arguments.configure_logger(args: Namespace)

Configures the logger according to the command line arguments provided by the user.

Parameters:

args – The command line arguments provided by the user