Documentation
¶
Index ¶
- func SetLevel(level Level)
- type Core
- type Field
- type Level
- type Logger
- type LoggerType
- type LogrusAdapter
- func (l *LogrusAdapter) Debug(format string, args ...Field)
- func (l *LogrusAdapter) Error(format string, args ...Field)
- func (l *LogrusAdapter) Fatal(format string, args ...Field)
- func (l *LogrusAdapter) Info(format string, args ...Field)
- func (l *LogrusAdapter) Panic(format string, args ...Field)
- func (l *LogrusAdapter) SetLevel(level Level) error
- func (l *LogrusAdapter) Sync() error
- func (l *LogrusAdapter) Warn(format string, args ...Field)
- func (l *LogrusAdapter) With(fields ...Field) Logger
- type ZapAdapter
- func (z *ZapAdapter) Debug(format string, args ...Field)
- func (z *ZapAdapter) Error(format string, args ...Field)
- func (z *ZapAdapter) Fatal(format string, args ...Field)
- func (z *ZapAdapter) Info(format string, args ...Field)
- func (z *ZapAdapter) Panic(format string, args ...Field)
- func (z *ZapAdapter) SetLevel(level Level) error
- func (z *ZapAdapter) Sync() error
- func (z *ZapAdapter) Warn(format string, args ...Field)
- func (z *ZapAdapter) With(fields ...Field) Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Logger ¶
type Logger interface {
Core
Sync() error
With(fields ...Field) Logger
SetLevel(level Level) error
}
func NewLogrusAdapter ¶
func NewZapAdapter ¶
type LoggerType ¶
type LoggerType string
const ( DefaultLoggerType LoggerType = "default" ZapLoggerType LoggerType = "zap" LogrusLoggerType LoggerType = "logrus" ZerologLoggerType LoggerType = "zerolog" LogstashLogger LoggerType = "logstash" )
type LogrusAdapter ¶
type LogrusAdapter struct {
// contains filtered or unexported fields
}
func (*LogrusAdapter) Debug ¶
func (l *LogrusAdapter) Debug(format string, args ...Field)
func (*LogrusAdapter) Error ¶
func (l *LogrusAdapter) Error(format string, args ...Field)
func (*LogrusAdapter) Fatal ¶
func (l *LogrusAdapter) Fatal(format string, args ...Field)
func (*LogrusAdapter) Info ¶
func (l *LogrusAdapter) Info(format string, args ...Field)
func (*LogrusAdapter) Panic ¶
func (l *LogrusAdapter) Panic(format string, args ...Field)
func (*LogrusAdapter) SetLevel ¶
func (l *LogrusAdapter) SetLevel(level Level) error
func (*LogrusAdapter) Sync ¶
func (l *LogrusAdapter) Sync() error
func (*LogrusAdapter) Warn ¶
func (l *LogrusAdapter) Warn(format string, args ...Field)
func (*LogrusAdapter) With ¶
func (l *LogrusAdapter) With(fields ...Field) Logger
type ZapAdapter ¶
type ZapAdapter struct {
// contains filtered or unexported fields
}
func (*ZapAdapter) Debug ¶
func (z *ZapAdapter) Debug(format string, args ...Field)
func (*ZapAdapter) Error ¶
func (z *ZapAdapter) Error(format string, args ...Field)
func (*ZapAdapter) Fatal ¶
func (z *ZapAdapter) Fatal(format string, args ...Field)
func (*ZapAdapter) Info ¶
func (z *ZapAdapter) Info(format string, args ...Field)
func (*ZapAdapter) Panic ¶
func (z *ZapAdapter) Panic(format string, args ...Field)
func (*ZapAdapter) SetLevel ¶
func (z *ZapAdapter) SetLevel(level Level) error
func (*ZapAdapter) Sync ¶
func (z *ZapAdapter) Sync() error
func (*ZapAdapter) Warn ¶
func (z *ZapAdapter) Warn(format string, args ...Field)
func (*ZapAdapter) With ¶
func (z *ZapAdapter) With(fields ...Field) Logger
Click to show internal directories.
Click to hide internal directories.