dawsonia.log#
Configures logging using the standard-library module
logging and Rich.
Module Contents#
Functions#
Returns a logger instance using |
API#
- dawsonia.log.init_logger(name, level=logging.INFO, show_time=False, show_path=False)[source]#
Returns a logger instance using
richpackage if available; else defaults tologgingstandard 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
…