log

package
v3.8.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 4, 2022 License: Apache-2.0 Imports: 2 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Driver

func Driver(log Logger, details trace.Details) trace.Driver

Driver makes trace.Driver with internal logging

func Table

func Table(log Logger, details trace.Details) trace.Table

Table makes trace.Table with internal logging nolint:gocyclo

Types

type Logger

type Logger interface {
	// Tracef logs at Trace logger level using fmt formatter
	Tracef(format string, args ...interface{})
	// Debugf logs at Debug logger level using fmt formatter
	Debugf(format string, args ...interface{})
	// Infof logs at Info logger level using fmt formatter
	Infof(format string, args ...interface{})
	// Warnf logs at Warn logger level using fmt formatter
	Warnf(format string, args ...interface{})
	// Errorf logs at Error logger level using fmt formatter
	Errorf(format string, args ...interface{})
	// Fatalf logs at Fatal logger level using fmt formatter
	Fatalf(format string, args ...interface{})

	// WithName provide applying sub-scope of logger messages
	WithName(name string) Logger
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL