initiate_option_parser¶
-
support.arguments.
initiate_option_parser
(description, examples)¶ Initiate an option parser with default logging options
This creates a command line option parser with predefined options for using the Python logging module:
--console_loglevel: stdout/stderr handler logging level (default: WARNING) --file_loglevel: file handler logging level (default: WARNING) --logfilepath: path to the log file (default: /usr/local/Logs/`hostname`) --module_loglevels: modified module logger levels, a dict of logging levels keyed on module, e.g., "support.arguments": logging.WARNING (default: {}, i.e. None)