jx-logging

module
v3.0.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 31, 2023 License: Apache-2.0

README

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 debug, info, warn info
JX_LOG_FORMAT text, json, stackdriver text
JX_LOG_FILE a location to send debug logs to
JX_LOG_SERVICE the service name
JX_LOG_SERVICE_VERSION the service version
JX_LOG_STACK_SKIP the comma separated stack frames to skip in the logs

Directories

Path Synopsis
pkg
log

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL