Home

Awesome

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.

VariableOptionsDefault
JX_LOG_LEVELdebug, info, warninfo
JX_LOG_FORMATtext, json, stackdrivertext
JX_LOG_FILEa location to send debug logs to
JX_LOG_SERVICEthe service name
JX_LOG_SERVICE_VERSIONthe service version
JX_LOG_STACK_SKIPthe comma separated stack frames to skip in the logs