Documentation ¶
Index ¶
Constants ¶
View Source
const (
DefaultDepth int = 4
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configure ¶
type Configure struct { types.AutoConfigure `prefix:"application.logging"` Level string `json:"level" yaml:"level"` Adapter string `json:"adapter" yaml:"adapter"` SkipIndex int `json:"skip_index" yaml:"skip_index"` Style *Style `json:"style" yaml:"style"` Loggers []*Loggers `json:"loggers" yaml:"loggers"` }
type Logger ¶
type Logger interface { bean.Bean Context(ctx context.Context) Logger GetName() string Trace(format string, a ...interface{}) Debug(format string, a ...interface{}) Info(format string, a ...interface{}) Warn(format string, a ...interface{}) Error(format string, a ...interface{}) Panic(format string, a ...interface{}) Fatal(format string, a ...interface{}) }
type LoggerAdapter ¶
type LoggerFactoryAdapter ¶ added in v1.4.4
func NewLoggerFactory ¶ added in v1.4.4
func NewLoggerFactory() LoggerFactoryAdapter
Click to show internal directories.
Click to hide internal directories.