linux-automation / lxa-iobus

Linux Automation IOBus server
https://lxa-iobus.readthedocs.io/en/latest/
Apache License 2.0
3 stars 4 forks source link

Improve logging and error reporting #15

Closed SmithChart closed 3 years ago

SmithChart commented 3 years ago

This is a collection of changes with the target to improve the user-experince of our logging and error reporting. The aim is to have the log-levels usable as follows:

ERROR: Only reports internal errors. Usually non-expected exceptions. Can print a python stack trace WARN: Reports expected exceptions, eg. errors resulting from invalid user input INFO: Default log level with reasonable amount of log for an end-user DEBUG: Developer log.

See the commit messages of the respective commits for explanations of the changes :-)