LoggerDomain

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2025 License: MIT Imports: 2 Imported by: 2

Documentation

Index

Constants

View Source
const (
	LogLevelDebug = Level("DEBUG")
	LogLevelInfo  = Level("INFO")
	LogLevelSQL   = Level("SQL")
	LogLevelWarn  = Level("WARN")
	LogLevelError = Level("ERROR")
	LogLevelPanic = Level("PANIC")
	LogLevelFatal = Level("FATAL")
)

MARK: - Levels

Variables

View Source
var LogFieldError = log.Path{Identifier: "error"}
View Source
var LogFieldTraceDump = log.Path{Parent: &LogFieldTraceScope, Identifier: "dump"}
View Source
var LogFieldTraceScope = log.Path{Identifier: "trace"}

Functions

This section is empty.

Types

type Level

type Level string

MARK: - Objects

func (Level) String

func (l Level) String() string

MARK: - Functions

type Logger

type Logger interface {
	Log(Level Level) Message
}

type Message

type Message interface {
	WithLevel(level Level) Message

	At(time int64) Message

	WithContext(ctx context.Context) Message

	WithField(key log.Path, value interface{}) Message
	WithFields(fields log.Fields) Message

	Msg(message string)
}

Jump to

Keyboard shortcuts

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