Explicit log key naming
The LogstashFormatter
in utils.py
will automatically manipulate the log keys according to their context. In some cases, this makes it hard to track the logs, as the key name may depend on the logger name, which may differ between different environments (e.g. run locally or run on the deployment machine).
To fix this, I would suggest that full explicit log keys would be used in the log calls ("Explicit is better than implicit"). This would make it a bit easier to track the log messages between different parts of the code.
-
Remove some parts of the automatic log key naming in LogstashFormatter
, instead provide the explicit log key in the log calls. -
Update log documentation to cover the basic keys that are currently used in the logs. -
Add log tests (this seems a bit problematic as for proper testing the docker image used for testing is not sufficent)