Skip to content
 
 

Repository files navigation

jx logging

Go Report Card Downloads

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

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)

Formats

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages