TheRacetrack / racetrack

An opinionated framework for deploying, managing, and serving application workloads
https://theracetrack.github.io/racetrack/
Apache License 2.0
28 stars 5 forks source link

Implement structured logging #411

Closed iszulcdeepsense closed 4 months ago

iszulcdeepsense commented 5 months ago

Changelog

Added

Structured logging can be enabled by setting LOG_STRUCTURED environment variable to true. This will cause Racetrack services to produce logs in a JSON format. The default logging formatter can also be changed by jobs. For more details, refer to the documentation of the specifc job type plugin. Take a look at the sample/python-logging-format/entrypoint.py to see how to configure your own logging formatter in jobs.