logger

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2023 License: Apache-2.0 Imports: 1 Imported by: 23

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debugf

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

func Errorf

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

func Infof

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

func Tracef

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

func Warnf

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

Types

type Logger

type Logger interface {
	Tracef(format string, v ...interface{})
	Debugf(format string, v ...interface{})
	Infof(format string, v ...interface{})
	Warnf(format string, v ...interface{})
	Errorf(format string, v ...interface{})
}
var DefaultLogger Logger = SimpleLogger{}

type SimpleLogger

type SimpleLogger struct{}

func (SimpleLogger) Debugf

func (l SimpleLogger) Debugf(format string, v ...interface{})

func (SimpleLogger) Errorf

func (l SimpleLogger) Errorf(format string, v ...interface{})

func (SimpleLogger) Infof

func (l SimpleLogger) Infof(format string, v ...interface{})

func (SimpleLogger) Tracef

func (l SimpleLogger) Tracef(format string, v ...interface{})

func (SimpleLogger) Warnf

func (l SimpleLogger) Warnf(format string, v ...interface{})

Jump to

Keyboard shortcuts

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