Discover Packages
github.com/shatteredsilicon/ssm-managed
utils
logger
package
Version:
v2.17.0+incompatible
Opens a new window with list of versions in this module.
Published: May 7, 2021
License: AGPL-3.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation Source Files Overview Index Constants Variables Functions Types Get(ctx) MakeRequestID() Set(ctx, requestID) SetEntry(ctx, l) SetupGlobalLogger() type GRPC (v) Info(args) (v) Infof(format, args) (v) Infoln(args) (v) V(l)
Documentation
¶
Package logger contains logging utilities.
Get returns logrus entry for given context. Set must be called before this method is called.
MakeRequestID returns a new request ID.
Set returns derived context with set logrus entry with given request ID.
SetEntry returns derived context with set given logrus entry.
SetupGlobalLogger configures logrus.StandardLogger() to enable multiline-friendly formatter
in both development (with terminal) and production (without terminal).
GRPC is a compatibility wrapper between logrus entry and gRPC logger interface.
func (v *GRPC ) Info(args ...interface{})
override InfoXXX methods with TraceXXX to keep gRPC and logrus levels in sync
func (v *GRPC ) Infof(format string , args ...interface{})
func (v *GRPC ) Infoln(args ...interface{})
V reports whether verbosity level l is at least the requested verbose level.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.