Documentation
¶
Index ¶
- Constants
- func Debug(args ...Any)
- func Debugf(format string, args ...Any)
- func Debugw(body string, fields Map)
- func Error(args ...Any)
- func Errorf(format string, args ...Any)
- func Errorw(body string, fields Map)
- func Fatal(args ...Any)
- func Fatalf(format string, args ...Any)
- func Fatalw(body string, fields Map)
- func Info(args ...Any)
- func Infof(format string, args ...Any)
- func Infow(body string, fields Map)
- func Levels() map[Level]string
- func Notice(args ...Any)
- func Noticef(format string, args ...Any)
- func Noticew(body string, fields Map)
- func Panic(args ...Any)
- func Panicf(format string, args ...Any)
- func Panicw(body string, fields Map)
- func Stats() Map
- func Trace(args ...Any)
- func Tracef(format string, args ...Any)
- func Tracew(body string, fields Map)
- func Warning(args ...Any)
- func Warningf(format string, args ...Any)
- func Warningw(body string, fields Map)
- func Write(level Level, args ...Any)
- func Writef(level Level, format string, args ...Any)
- func Writew(level Level, body string, fields Map)
- type Config
- type Configs
- type Connection
- type Driver
- type Instance
- type Level
- type Log
- type Module
- func (m *Module) Close()
- func (m *Module) Config(global Map)
- func (m *Module) Logging(level Level, args ...Any)
- func (m *Module) Loggingf(level Level, format string, args ...Any)
- func (m *Module) Loggingw(level Level, body string, fields Map)
- func (m *Module) Open()
- func (m *Module) Register(name string, value Any)
- func (m *Module) RegisterConfig(name string, cfg Config)
- func (m *Module) RegisterConfigs(configs Configs)
- func (m *Module) RegisterDriver(name string, driver Driver)
- func (m *Module) Setup()
- func (m *Module) Start()
- func (m *Module) Stats() Map
- func (m *Module) Stop()
- func (m *Module) Write(entry Log)
Constants ¶
View Source
const ( OverflowDrop = "drop" OverflowDropNewest = "drop_newest" OverflowDropOldest = "drop_oldest" OverflowBlock = "block" DropOld = "old" DropNew = "new" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Connection ¶ added in v0.4.0
type Driver ¶
type Driver interface {
Connect(*Instance) (Connection, error)
}
type Instance ¶
type Instance struct {
Name string
Config Config
Setting map[string]any
// contains filtered or unexported fields
}
type Module ¶
type Module struct {
// contains filtered or unexported fields
}
func (*Module) RegisterConfig ¶
func (*Module) RegisterConfigs ¶
func (*Module) RegisterDriver ¶
Click to show internal directories.
Click to hide internal directories.