Documentation ¶
Index ¶
- type Log
- func (l *Log) Debug() *zerolog.Event
- func (l *Log) DebugP(prefix map[string]interface{}) *zerolog.Event
- func (l *Log) Error() *zerolog.Event
- func (l *Log) ErrorP(prefix map[string]interface{}) *zerolog.Event
- func (l *Log) Fatal() *zerolog.Event
- func (l *Log) FatalP(prefix map[string]interface{}) *zerolog.Event
- func (l *Log) Info() *zerolog.Event
- func (l *Log) InfoP(prefix map[string]interface{}) *zerolog.Event
- func (l *Log) Panic() *zerolog.Event
- func (l *Log) PanicP(prefix map[string]interface{}) *zerolog.Event
- func (l *Log) Trace() *zerolog.Event
- func (l *Log) TraceP(prefix map[string]interface{}) *zerolog.Event
- func (l *Log) Warn() *zerolog.Event
- func (l *Log) WarnP(prefix map[string]interface{}) *zerolog.Event
- func (l *Log) Writer() *zerolog.Logger
- type LogOption
- func WithCaller() LogOption
- func WithCustomMsgKey(k string) LogOption
- func WithCustomTimeKey(k string) LogOption
- func WithGlobalPrefix(prefix map[string]interface{}) LogOption
- func WithLevelDebug() LogOption
- func WithLevelError() LogOption
- func WithLevelFatal() LogOption
- func WithLevelInfo() LogOption
- func WithLevelPanic() LogOption
- func WithLevelTrace() LogOption
- func WithLevelWarn() LogOption
- func WithLogUnixTimestamp() LogOption
- func WithOutputFilePath(path string, filename string) LogOption
- func WithOutputFileRotate(maxSize int, maxAge int, maxBackup int, compressEnable bool) LogOption
- func WithPrefixTimestamp(k string) LogOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogOption ¶
type LogOption func(o *logOptions)
func WithCaller ¶
func WithCaller() LogOption
func WithCustomMsgKey ¶
func WithCustomTimeKey ¶
func WithGlobalPrefix ¶
func WithLevelDebug ¶
func WithLevelDebug() LogOption
func WithLevelError ¶
func WithLevelError() LogOption
func WithLevelFatal ¶
func WithLevelFatal() LogOption
func WithLevelInfo ¶
func WithLevelInfo() LogOption
func WithLevelPanic ¶
func WithLevelPanic() LogOption
func WithLevelTrace ¶
func WithLevelTrace() LogOption
func WithLevelWarn ¶
func WithLevelWarn() LogOption
func WithLogUnixTimestamp ¶
func WithLogUnixTimestamp() LogOption
func WithOutputFilePath ¶
func WithOutputFileRotate ¶
func WithPrefixTimestamp ¶
Click to show internal directories.
Click to hide internal directories.