In Python's logging module, you can specify five levels of logging:
DEBUG
INFO
WARNING
ERROR
CRITICAL
In the ibet-Wallet-API logs, we primarily use three of these levels: ERROR, WARNING, and INFO, with the following distinctions:
ERROR: Information for detecting abnormal conditions. Indicates a failure state.
WARNING: Information for detecting states that require attention. Indicates a state where an anomaly has occurred but is not a failure.
INFO: Information necessary to confirm normal operation.
Regarding the WARNING level, in typical use of the ibet-Wallet-API, immediate detection is not currently in place. However, as service operators, there are situations where immediate detection and attention are desired. Therefore, we would like to restructure the log levels as follows:
🚨 ERROR: Information for detecting abnormal conditions. Indicates a failure state.
🚨 WARNING: Information for detecting exceptional events that are not failures.
⚠️ NOTICE: Information that is normal but represents an important event.
INFO: Information necessary to confirm normal operation.
Based on this idea, I made a modification to add a new log level "NOTICE". Also, I reviewed the log levels of WARNING and NOTICE.
In Python's logging module, you can specify five levels of logging:
DEBUG
INFO
WARNING
ERROR
CRITICAL
In the ibet-Wallet-API logs, we primarily use three of these levels: ERROR, WARNING, and INFO, with the following distinctions:
ERROR
: Information for detecting abnormal conditions. Indicates a failure state.WARNING
: Information for detecting states that require attention. Indicates a state where an anomaly has occurred but is not a failure.INFO
: Information necessary to confirm normal operation.Regarding the WARNING level, in typical use of the ibet-Wallet-API, immediate detection is not currently in place. However, as service operators, there are situations where immediate detection and attention are desired. Therefore, we would like to restructure the log levels as follows:
ERROR
: Information for detecting abnormal conditions. Indicates a failure state.WARNING
: Information for detecting exceptional events that are not failures.NOTICE
: Information that is normal but represents an important event.INFO
: Information necessary to confirm normal operation.Based on this idea, I made a modification to add a new log level "NOTICE". Also, I reviewed the log levels of WARNING and NOTICE.