ws.logging module

ws.logging.setTerminalLogging()
ws.logging.set_argparser(argparser)

Add arguments for configuring global logging values to an instance of argparse.ArgumentParser.

This function is called internally from the ws.config module.

Parameters

argparser – an instance of argparse.ArgumentParser

ws.logging.init(args)

Initialize the logging module with the arguments parsed by argparse.ArgumentParser.

This function is called internally from the ws.config module.

Parameters

args – an instance of argparse.Namespace. It is expected that set_argparser() was called prior to parsing the arguments.