logger

package
v1.1.43 Latest Latest
Warning

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

Go to latest
Published: May 19, 2024 License: MIT Imports: 2 Imported by: 10

Documentation

Index

Constants

View Source
const (
	ERROR = "ERROR"
	WARN  = "WARN"
	INFO  = "INFO"
	DEBUG = "DEBUG"
	TRACE = "TRACE"
)

Variables

This section is empty.

Functions

func InitDefaultLogger added in v1.1.0

func InitDefaultLogger(logLevel string)

Types

type Logger

type Logger interface {
	Trace(message string, args ...interface{})
	Debug(message string, args ...interface{})
	Info(message string, args ...interface{})
	Warn(message string, args ...interface{})
	Error(message string, args ...interface{})
	Log(level string, message string, args ...interface{})
}
var Log Logger

type Loggers added in v1.1.0

type Loggers struct {
	Logrus *logrus.Logger
}

func (*Loggers) Debug added in v1.1.0

func (loggers *Loggers) Debug(message string, args ...interface{})

func (*Loggers) Error added in v1.1.0

func (loggers *Loggers) Error(message string, args ...interface{})

func (*Loggers) Info added in v1.1.0

func (loggers *Loggers) Info(message string, args ...interface{})

func (*Loggers) Log added in v1.1.0

func (loggers *Loggers) Log(level string, message string, args ...interface{})

func (*Loggers) Trace added in v1.1.2

func (loggers *Loggers) Trace(message string, args ...interface{})

func (*Loggers) Warn added in v1.1.0

func (loggers *Loggers) Warn(message string, args ...interface{})

Jump to

Keyboard shortcuts

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