package
Version:
v2.2.2+incompatible
Opens a new window with list of versions in this module.
Published: Jan 22, 2020
License: AGPL-3.0
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
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.
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.
Reform is a SQL logger with metrics.
TODO https://jira.percona.com/browse/PMM-5302 Move to percona/pmm utils and use in pmm-agent and qan-api2.
func NewReform(driver, dbName string, printf reform.Printf) *Reform
NewReform creates a new logger with given parameters.
After implements reform.Logger.
Before implements reform.Logger.
Collect implements prom.Collector.
Describe implements prom.Collector.
Requests returns a total number of queries started.
Reset sets all metrics to 0.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.