log

package
v0.0.0-...-44638ef Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debugf

func Debugf(format string, params ...interface{})

Debugf is used to print a trace level log

func Errorf

func Errorf(format string, params ...interface{})

Errorf is used to print an error

func Infof

func Infof(format string, params ...interface{})

Infof is used to print an error

func SetPatterns

func SetPatterns(patterns []string)

SetPatterns set patterns

func Trace

func Trace(v interface{})

Trace is used to print an trace

func Tracef

func Tracef(format string, params ...interface{})

Tracef is used to print an trace

func Warnf

func Warnf(format string, params ...interface{})

Warnf is used to print a warn

Types

type PatternLogger

type PatternLogger struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

PatternLogger is a wrapper for the agent logger that add a level of filtering to trace log level

var DefaultLogger *PatternLogger

DefaultLogger default logger of this package

func (*PatternLogger) Debugf

func (l *PatternLogger) Debugf(format string, params ...interface{})

Debugf is used to print a trace level log

func (*PatternLogger) Errorf

func (l *PatternLogger) Errorf(format string, params ...interface{})

Errorf is used to print an error

func (*PatternLogger) Infof

func (l *PatternLogger) Infof(format string, params ...interface{})

Infof is used to print an error

func (*PatternLogger) SetPatterns

func (l *PatternLogger) SetPatterns(patterns []string)

SetPatterns set pattern

func (*PatternLogger) Trace

func (l *PatternLogger) Trace(v interface{})

Trace is used to print a trace level log

func (*PatternLogger) Tracef

func (l *PatternLogger) Tracef(format string, params ...interface{})

Tracef is used to print a trace level log

func (*PatternLogger) Warnf

func (l *PatternLogger) Warnf(format string, params ...interface{})

Warnf is used to print a warn

Jump to

Keyboard shortcuts

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