Use logging library #50

Closed
opened 2022-01-07 10:11:29 +01:00 by pfm · 5 comments
Collaborator

Consider replacing custom logging code with Python logging module found in standard library functionality.

Consider replacing custom logging code with Python `logging` module found in standard library functionality.
pfm added the
CODE
IDEA
labels 2022-01-07 10:11:29 +01:00
Author
Collaborator
See [documentation](https://docs.python.org/3.8/library/logging.html).
Author
Collaborator

Python's Logging HOWTO mentions logging.config package which makes it possible to just point at a file and load logging configuration from it, including formatters. I think that's the way to go.

Python's [Logging HOWTO](https://docs.python.org/3/howto/logging.html) mentions `logging.config` package which makes it possible to just point at a file and load logging configuration from it, including formatters. I think that's the way to go.
Author
Collaborator

This flexibility comes at a cost: it makes things more complex.

The question we should answer is: what happens when logging configuration is missing? A reasonable default would be using syslog.

This flexibility comes at a cost: it makes things more complex. The question we should answer is: what happens when logging configuration is missing? A reasonable default would be using syslog.
pfm self-assigned this 2022-04-23 12:17:35 +02:00
Author
Collaborator

Things to consider:

  • provide default configuration;
  • document logging framework features, incl. links to complete documentation.
Things to consider: - provide default configuration; - document logging framework features, incl. links to complete documentation.
Author
Collaborator

This has been solved with #65.

This has been solved with #65.
pfm closed this issue 2022-05-15 09:51:34 +02:00
Sign in to join this conversation.
No description provided.