logger

package
v0.7.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	//InfoLevel ...
	InfoLevel = Level(log.InfoLevel)

	// ErrorLevel ...
	ErrorLevel = Level(log.ErrorLevel)

	// WarnLevel ...
	WarnLevel = Level(log.WarnLevel)

	// DebugLevel ...
	DebugLevel = Level(log.DebugLevel)

	// TraceLevel ...
	TraceLevel = Level(log.TraceLevel)
)

Variables

View Source
var LogEntry *logEntry = new()

LogEntry ...

Functions

func Debug

func Debug(s string, args ...interface{})

Debug ...

func Error

func Error(s string, args ...interface{})

Error ...

func GetLogger added in v0.0.3

func GetLogger() *log.Logger

GetLogger ...

func Info

func Info(s string, args ...interface{})

Info ...

func Inspect added in v0.3.0

func Inspect(i interface{})

Inspect ...

func Log added in v0.0.3

func Log(level Level, s string, args ...interface{})

Log ...

func SetLevel added in v0.0.3

func SetLevel(level Level)

SetLevel ...

func SetLogger added in v0.0.3

func SetLogger(logger *log.Logger)

SetLogger ...

func Trace

func Trace(s string, args ...interface{})

Trace ...

func Warn

func Warn(s string, args ...interface{})

Warn ...

Types

type Fields

type Fields map[string]interface{}

Fields ...

type Level

type Level uint32

Level ...

Jump to

Keyboard shortcuts

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