Rework logging
The task is to update logging.
- RabbitMQ (or any other) logger should inherit the options from the cryton debug/production/testing logger.
- Use IDs in logs instead of name. The name parameter should be used only when validating or creating a plan/template.
- Remove redundant logs and add them where they're missing (there shouldn't be multiple INFO/DEBUG logs stating the same thing. Also, there are basically only DEBUG-level logs).
- Instead of
"%(asctime)s.%(msecs)03d %(levelname)s [%(thread)d] {%(module)s} [%(funcName)s] %(message)s, "
leave only"%(message)s"
since we are using structlog, which should also support all of these features, but is serializable. - Rework logger into a class.
- When running inside the Docker container, the logs should be displayed inside the console.
- Add an option to log into syslog (AI-DOJO requirement)
- We need to update the processors and wrapper class used from the structlog