Documentation ¶
Overview ¶
Package gologging provides a logger implementation based on the github.com/op/go-logging pkg
Index ¶
Constants ¶
View Source
const Namespace = "github_com/devopsfaith/krakend-gologging"
Namespace is the key to look for extra configuration details
Variables ¶
View Source
var ( // ErrEmptyValue is the error returned when there is no config under the namespace ErrWrongConfig = fmt.Errorf("getting the extra config for the krakend-gologging module") // DefaultPattern is the pattern to use for rendering the logs LogstashPattern = `` /* 138-byte string literal not displayed */ DefaultPattern = ` %{time:2006/01/02 - 15:04:05.000} %{color}▶ %{level:.6s}%{color:reset} %{message}` ActivePattern = DefaultPattern )
Functions ¶
func ConfigGetter ¶
func ConfigGetter(e config.ExtraConfig) interface{}
ConfigGetter implements the config.ConfigGetter interface
func SetFormatterSelector ¶
SetFormatterSelector sets the ddefaultFormatterSelector function
Types ¶
type Config ¶
type Config struct { Level string StdOut bool Syslog bool Prefix string Format string CustomFormat string }
Config is the custom config struct containing the params for the logger
Click to show internal directories.
Click to hide internal directories.