Logging

pangaea.log_to_console(status=True, level=None)[source]

Log events to the console.

Parameters:
  • status (bool, Optional, Default=True) – whether logging to console should be turned on(True) or off(False)
  • level (string, Optional, Default=None) – level of logging; whichever level is chosen all higher levels will be logged. See: https://docs.python.org/2/library/logging.html#levels
pangaea.log_to_file(status=True, filename='/home/docs/.cache/pangaea/log/pangaea.log', level=None)[source]

Log events to a file.

Parameters:
  • status (bool, Optional, Default=True) – whether logging to file should be turned on(True) or off(False)
  • filename (string, Optional, Default=None) – path of file to log to
  • level (string, Optional, Default=None) – level of logging; whichever level is chosen all higher levels will be logged. See: https://docs.python.org/2/library/logging.html#levels