目录

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
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9 京公网安备 11010802032778号