logger

package
v0.0.0-...-6470968 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(args ...interface{})

func Debugf

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

func Error

func Error(args ...interface{})

func Errorf

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

func Info

func Info(args ...interface{})

func Infof

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

func SetDefaultLogger

func SetDefaultLogger(logger Logger)

func Trace

func Trace(args ...interface{})

func Tracef

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

func Warn

func Warn(args ...interface{})

func Warnf

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

Types

type Logger

type Logger interface {
	Trace(args ...interface{})
	Tracef(format string, args ...interface{})
	Debugf(format string, args ...interface{})
	Infof(format string, args ...interface{})
	Warnf(format string, args ...interface{})
	Errorf(format string, args ...interface{})
	Debug(args ...interface{})
	Info(args ...interface{})
	Warn(args ...interface{})
	Error(args ...interface{})
}
var DefaultLogger Logger

type PionLogger

type PionLogger struct {
	// contains filtered or unexported fields
}

func (*PionLogger) Debug

func (pl *PionLogger) Debug(msg string)

func (*PionLogger) Debugf

func (pl *PionLogger) Debugf(format string, args ...interface{})

func (*PionLogger) Error

func (pl *PionLogger) Error(msg string)

func (*PionLogger) Errorf

func (pl *PionLogger) Errorf(format string, args ...interface{})

func (*PionLogger) Info

func (pl *PionLogger) Info(msg string)

func (*PionLogger) Infof

func (pl *PionLogger) Infof(format string, args ...interface{})

func (*PionLogger) Trace

func (pl *PionLogger) Trace(msg string)

func (*PionLogger) Tracef

func (pl *PionLogger) Tracef(format string, args ...interface{})

func (*PionLogger) Warn

func (pl *PionLogger) Warn(msg string)

func (*PionLogger) Warnf

func (pl *PionLogger) Warnf(format string, args ...interface{})

type PionLoggerFactory

type PionLoggerFactory struct {
	// contains filtered or unexported fields
}

func NewPionLoggerFactory

func NewPionLoggerFactory(l Logger) *PionLoggerFactory

func (*PionLoggerFactory) NewLogger

func (lf *PionLoggerFactory) NewLogger(scope string) logging.LeveledLogger

Jump to

Keyboard shortcuts

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