Discover Packages
github.com/percona/pmm-managed
utils
logger
package
Version:
v2.16.0+incompatible
Opens a new window with list of versions in this module.
Published: Apr 8, 2021
License: AGPL-3.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 9
Opens a new window with list of known importers.
Documentation
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.