jade.loggers.setup_logging

jade.loggers.setup_logging(name, filename, console_level=20, file_level=20, mode='w', packages=None)[source]

Configures logging to file and console.

Parameters:
  • name (str) – logger name

  • filename (str | None) – log filename

  • console_level (int, optional) – console log level

  • file_level (int, optional) – file log level

  • packages (list, optional) – enable logging for these package names