Python's logging module provides the following levels of logging:
| Level | Numeric value |
| ------------------ | -------------------- |
| CRITICAL | 50 |
| ERROR | 40 |
| WARNING | 30 |
| INFO | 20 |
| DEBUG | 10 |
| NOTSET | 0 |
We already wish to use DEBUG, INFO, WARNING and ERROR. This ticket is mostly concerned with:
CRITICAL, andAs an example, an error stating that the genesis block is missing could be viewed as CRITICAL whereas an error caused by an invalid signature could simply be viewed as an ERROR.
Furthermore:
DEBUG level logs?INFO level logs?INFO logs?INFO logs?DEBUG logs?DEBUG logs?WARNING log and an ERROR log.And so forth. @sohkai and @krish7919 and others: feel free to add to the above concerns.
Some deliverables:
Something small to remember: Logger.exception() should be used instead of Logger.error() when handling exceptions.
It should also be noted that we can filter events to create notifications via external web services or email (e.g. send an email for all CRITICAL errors).
Events also have an importance which the developer _ascribes_ to the event; the importance can also be called the level or severity.
My three cents, in italics.
At this point BigchainDB does not handle CRITICAL faults.
Regarding the other debug levels at least at this point it should be up to the developers and reviewers discretion.
I say we close this. @sbellem ?