A simple logging wrapper around logrus used in all JX components. The aim is to have a single place to configure log formats and levels.
Configuration can be done with the following environment variables.
Variable | Options | Default |
---|---|---|
JX_LOG_LEVEL | trace, debug, info, warn | info |
JX_LOG_FORMAT | text, json, stackdriver, extended | text |
JX_LOG_FILE | a location to send debug logs to | |
JX_LOG_SERVICE | the service name (stackdriver only) | |
JX_LOG_SERVICE_VERSION | the service version (stackdriver only) | |
JX_LOG_STACK_SKIP | the comma separated stack frames to skip in the logs (stackdriver only) |
Format | Description |
---|---|
json | Standard logrus JSON layout |
text | Custom colorful Jenkins X layout |
stackdriver | Custom formatter for stackdriver |
extended | Standard logrus text layout. Notably it shows fields, which text doesn't |