Socket
Socket
Sign inDemoInstall

github.com/devopsfaith/krakend-gologging/v2

Package Overview
Dependencies
2
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    github.com/devopsfaith/krakend-gologging/v2

Package gologging provides a logger implementation based on the github.com/op/go-logging pkg


Version published

Readme

Source

krakend-gologging

An improved logger for the KrakenD framework

How to use it

Import the package

import "github.com/krakendio/krakend-gologging"

After parsing the config file (here cfg), call the logger factory with the extra config of the system

logger, _ := logging.NewLogger(cfg.ExtraConfig)

And the logger is ready to be injected

Configuration

Add the github_com/devopsfaith/krakend-gologging section to the service extra config.

Example:

"extra": {
	"github_com/devopsfaith/krakend-gologging": {
		"level":  "INFO",
		"prefix": "[KRAKEND]",
		"syslog": false,
		"stdout": true
	}
}
  1. level: name of the min log level to display
  2. prefix: prefix to use with the application logs
  3. syslog: enable logging over syslog
  4. stdout: enable logging over the stdout

FAQs

Last updated on 01 Sep 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc