The logging configuration consists of four parts: loggers, handlers, filters, and formatters. The following list describes them:
- Loggers are entry points into the logging system. Each logger can have a log level: DEBUG, INFO, WARNING, ERROR, or CRITICAL. When a message is written to the logger, the log level of the message is compared with the logger's level. If it meets or exceeds the log level of the logger, it will be further processed by a handler. Otherwise, the message will be ignored.
- Handlers are engines that define what happens to each message in the logger. They can be written to a console, sent by email to the administrator, saved to a log file, sent to the Sentry error-logging service, and so on. In our case, ...