fancy_logger

outputting.fancy_logger(log_file=None, log_level=20, numpy_error_level=u'log')[source]

Sets up the style of logging for all the simulations

Parameters:
  • date_string (basestring) – The date the log will start at
  • log_file (string, optional) – Provides the path the log will be written to. Default “./log.txt”
  • log_level ({logging.DEBUG, logging.INFO, logging.WARNING, logging.ERROR, logging.CRITICAL}) – Defines the level of the log. Default logging.INFO
  • numpy_error_level ({'log', 'raise'}) – Defines the response to numpy errors. Default log. See numpy.seterr
Returns:

close_loggers – Closes the logging systems that have been set up

Return type:

function

See also

logging()
The Python standard logging library
numpy.seterr()
The function npErrResp is passed to for defining the response to numpy errors