Documentation ¶
Index ¶
- func Debugf(msg string, args ...any) bool
- func Errorf(msg string, args ...any) bool
- func Fatalf(msg string, args ...any) bool
- func Infof(msg string, args ...any) bool
- func InitDefault(name string)
- func IsDebug() bool
- func IsTrace() bool
- func Panicf(msg string, args ...any) bool
- func Tracef(msg string, args ...any) bool
- func Warnf(msg string, args ...any) bool
- type ConsoleOutputer
- type Facade
- func (l *Facade) DebugFields(msg string, fields ...any) bool
- func (l *Facade) Debugf(msg string, args ...any) bool
- func (l *Facade) ErrorFields(msg string, fields ...any) bool
- func (l *Facade) Errorf(msg string, args ...any) bool
- func (l *Facade) FatalFields(msg string, fields ...any) bool
- func (l *Facade) Fatalf(msg string, args ...any) bool
- func (l *Facade) InfoFields(msg string, fields ...any) bool
- func (l *Facade) Infof(msg string, args ...any) bool
- func (l *Facade) Level(level Level) *Record
- func (l *Facade) PanicFields(msg string, fields ...any) bool
- func (l *Facade) Panicf(msg string, args ...any) bool
- func (l *Facade) TraceFields(msg string, fields ...any) bool
- func (l *Facade) Tracef(msg string, args ...any) bool
- func (l *Facade) WarnFields(msg string, fields ...any) bool
- func (l *Facade) Warnf(msg string, args ...any) bool
- func (l *Facade) WithFields(fields ...any) *Facade
- type GeneralLogger
- type Level
- type Logger
- type Outputer
- type Record
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitDefault ¶
func InitDefault(name string)
Types ¶
type ConsoleOutputer ¶
func NewConsoleOutputer ¶
func NewConsoleOutputer() *ConsoleOutputer
func (*ConsoleOutputer) Output ¶
func (c *ConsoleOutputer) Output(r *Record)
type Facade ¶
type Facade struct {
// contains filtered or unexported fields
}
func (*Facade) WithFields ¶
type GeneralLogger ¶
type Logger ¶
type Logger struct { *Facade // contains filtered or unexported fields }
var DefaultLogger *Logger
func (*Logger) AddOutputer ¶
func (*Logger) SetLevelName ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.