logger

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Debug           bool   `default:"false" envconfig:"DEBUG"`
	Development     bool   `default:"false" envconfig:"DEVELOPMENT"`
	Deployment      string `default:"unknown" envconfig:"DEPLOYMENT"`
	StackTraceLevel string `default:"error" envconfig:"LOG_STACK_TRACE_LEVEL"`

	ExtraFields map[string]interface{}
}

type Logger

type Logger interface {
	Init(*Config) (Logger, error)
	NoCaller() Logger

	Debug(msg string, args ...interface{})
	Info(msg string, args ...interface{})
	Warn(msg string, args ...interface{})
	Error(msg string, args ...interface{})
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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