log

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(args ...interface{})

Debug is debug level

func Debugf

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

Debugf is format debug level

func Enable

func Enable(level types.Level) bool

func Error

func Error(args ...interface{})

Error is error level

func Errorf

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

Errorf is format error level

func Fatal

func Fatal(args ...interface{})

Error is fault level

func Fatalf

func Fatalf(fmt string, args ...interface{})

Fatalf is format fatal level

func GetConstructor added in v0.1.1

func GetConstructor(name string) types.LoggerConstructor

func GetLevel

func GetLevel() types.Level

func GetLogger added in v0.1.1

func GetLogger(name string) types.Logger

func GetRaw

func GetRaw() interface{}

func Info

func Info(args ...interface{})

Info is info level

func Infof

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

Infof is format info level

func RegisterConstructor added in v0.1.1

func RegisterConstructor(name string, f types.LoggerConstructor)

func SetLevel

func SetLevel(level types.Level)

func SetLogger

func SetLogger(logger types.Logger)

func Warn

func Warn(args ...interface{})

Warn is warning level

func Warnf

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

Warnf is format warning level

Types

type StdLogger

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

func (*StdLogger) Debug

func (l *StdLogger) Debug(args ...interface{})

func (*StdLogger) Debugf

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

func (*StdLogger) Enable

func (l *StdLogger) Enable(level types.Level) bool

func (*StdLogger) Error

func (l *StdLogger) Error(args ...interface{})

func (*StdLogger) Errorf

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

func (*StdLogger) Fatal

func (l *StdLogger) Fatal(args ...interface{})

func (*StdLogger) Fatalf

func (l *StdLogger) Fatalf(format string, args ...interface{})

func (*StdLogger) GetLevel

func (l *StdLogger) GetLevel() types.Level

func (*StdLogger) GetRaw

func (l *StdLogger) GetRaw() interface{}

func (*StdLogger) Info

func (l *StdLogger) Info(args ...interface{})

func (*StdLogger) Infof

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

func (*StdLogger) SetLevel

func (l *StdLogger) SetLevel(level types.Level)

func (*StdLogger) Warn

func (l *StdLogger) Warn(args ...interface{})

func (*StdLogger) Warnf

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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