The default behavior for adding and solving with noisemodels has changed from Pastas 1.5. Find more information here

pastas.utils.add_file_handlers#

add_file_handlers(logger=None, filenames=('info.log', 'errors.log'), levels=(20, 40), maxBytes=10485760, backupCount=20, encoding='utf8', fmt='%(asctime)s - %(name)s - %(levelname)s - %(message)s', datefmt='%y-%m-%d %H:%M')[source]#

Method to add file handlers in the logger of Pastas.

Parameters
  • logger (logging.Logger) – A Logger-instance. Use ps.logger to initialise the Logging instance that handles all logging throughout pastas, including all submodules and packages.

  • filenames (Tuple[str]) –

  • levels (Tuple[Any]) –

  • maxBytes (int) –

  • backupCount (int) –

  • encoding (str) –

  • fmt (str) –

  • datefmt (str) –

Return type

None