Logging convenience functions.

pypesto.logging.log(name: str = 'pypesto', level: int = 10, console: bool = False, filename: str = '')[source]

Log messages from a specified name with a specified level to any combination of console and file.

  • name – The name of the logger.

  • level – The output level to use.

  • console – If True, messages are logged to console.

  • filename – If specified, messages are logged to a file with this name.

pypesto.logging.log_to_console(level: int = 10)[source]

Log to console.


the log method. (See) –

pypesto.logging.log_to_file(level: int = 10, filename: str = '.pypesto_logging.log')[source]

Log to file.


the log method. (See) –