dawsonia.log#

Configures logging using the standard-library module logging and Rich.

Module Contents#

Functions#

init_logger_basic

init_logger

Returns a logger instance using rich package if available; else defaults to logging standard library. Output is also written into the filesystem in to a rotating filename which rolls over every day. It saves as:

API#

dawsonia.log.init_logger_basic(name, level=logging.INFO)[source]#
dawsonia.log.init_logger(name, level=logging.INFO, show_time=False, show_path=False)[source]#

Returns a logger instance using rich package if available; else defaults to logging standard library. Output is also written into the filesystem in to a rotating filename which rolls over every day. It saves as:

  • dawsonia.log

Previous files would be named:

  • dawsonia.log.1

  • dawsonia.log.2