initiate_logger

mapsci.initiate_logger

initiate_logger(console=None, log_file=None, verbose=30)[source]

Initiate a logging handler if more detail on the calculations is desired. If a handler of the given type is already present, nothing is done. If either handler is given a value of False, the handler of that type is removed.

Parameters
  • console (bool, Optional, default=None) – Initiates a stream handler to print to a console

  • log_file (bool/str, Optional, default=None) – If log output should be recorded in a file, set this keyword to either True or to a name for the log file. If True, the file name ‘mapsci.log’ is used. Note that if a file with the same name already exists, it will be deleted.

  • verbose (int, Optional, default=30) – The verbosity of logging information can be set to any supported representation of the logging level.