Versions in this module Expand all Collapse all v0 v0.2.0 Apr 25, 2018 v0.1.2 Apr 25, 2018 v0.1.1 Nov 25, 2017 v0.1.0 Nov 25, 2017 Changes in this version + func Debug(ctx context.Context, v ...interface{}) + func Debugf(ctx context.Context, format string, v ...interface{}) + func Error(ctx context.Context, v ...interface{}) + func Errorf(ctx context.Context, format string, v ...interface{}) + func Fatal(ctx context.Context, v ...interface{}) + func Fatalf(ctx context.Context, format string, v ...interface{}) + func Info(ctx context.Context, v ...interface{}) + func Infof(ctx context.Context, format string, v ...interface{}) + func Panic(ctx context.Context, v ...interface{}) + func Panicf(ctx context.Context, format string, v ...interface{}) + func SetGlobalLogger(l *Logger) + func Warn(ctx context.Context, v ...interface{}) + func Warnf(ctx context.Context, format string, v ...interface{}) + type Event struct + func DebugEvent(ctx context.Context) *Event + func ErrorEvent(ctx context.Context) *Event + func FatalEvent(ctx context.Context) *Event + func InfoEvent(ctx context.Context) *Event + func PanicEvent(ctx context.Context) *Event + func WarnEvent(ctx context.Context) *Event + func (e *Event) Bool(key string, value bool) *Event + func (e *Event) Byte(key string, value byte) *Event + func (e *Event) Bytes(key string, value []byte) *Event + func (e *Event) Error(key string, err error) *Event + func (e *Event) Float32(key string, value float32) *Event + func (e *Event) Float64(key string, value float64) *Event + func (e *Event) Free() + func (e *Event) Int(key string, value int) *Event + func (e *Event) Int32(key string, value int32) *Event + func (e *Event) Int64(key string, value int64) *Event + func (e *Event) Interface(key string, value interface{}) *Event + func (e *Event) Message(message string) + func (e *Event) Messagef(format string, v ...interface{}) + func (e *Event) String(key string, value string) *Event + func (e *Event) Time(key string, value time.Time, format string) *Event + func (e *Event) Uint(key string, value uint) *Event + func (e *Event) Uint32(key string, value uint32) *Event + func (e *Event) Uint64(key string, value uint64) *Event + type EventCaller struct + Defined bool + File string + Line int + PC uintptr + func (ec *EventCaller) Free() + func (ec EventCaller) FullPath() string + func (ec EventCaller) String() string + func (ec EventCaller) TrimmedPath() string + type EventCallerPool struct + func NewEventCallerPool() EventCallerPool + func (p EventCallerPool) Get() *EventCaller + type EventPool struct + func NewEventPool() EventPool + func (p EventPool) Get() *Event + type Flusher interface + Flush func() error + type Level uint8 + const DebugLevel + const ErrorLevel + const FatalLevel + const InfoLevel + const MuteLevel + const PanicLevel + const WarnLevel + func ParseLevel(level string) (Level, error) + func (l Level) String() string + type LevelWriter interface + WriteLevel func(level Level, message []byte) (n int, err error) + type Logger struct + func GlobalLogger() *Logger + func NewBufferedFileLogger(filePath string, flushInterval int, level ...string) (*Logger, error) + func NewBufferedFileLoggerWithError(filePath, errFilePath string, flushInterval int, level ...string) (*Logger, error) + func NewBufferedTerminalLogger(level ...string) (*Logger, error) + func NewFileLogger(filePath string, level ...string) (*Logger, error) + func NewFileLoggerWithError(filePath, errFilePath string, level ...string) (*Logger, error) + func NewLogger(out io.Writer, level ...string) (*Logger, error) + func NewLoggerWithError(out, errOut io.Writer, level ...string) (l *Logger, err error) + func NewTerminalLogger(level ...string) (*Logger, error) + func (l *Logger) Debug(ctx context.Context, v ...interface{}) + func (l *Logger) DebugEvent(ctx context.Context) *Event + func (l *Logger) Debugf(ctx context.Context, format string, v ...interface{}) + func (l *Logger) Error(ctx context.Context, v ...interface{}) + func (l *Logger) ErrorEvent(ctx context.Context) *Event + func (l *Logger) Errorf(ctx context.Context, format string, v ...interface{}) + func (l *Logger) Fatal(ctx context.Context, v ...interface{}) + func (l *Logger) FatalEvent(ctx context.Context) *Event + func (l *Logger) Fatalf(ctx context.Context, format string, v ...interface{}) + func (l *Logger) Flush() + func (l *Logger) GetLevel() string + func (l *Logger) Info(ctx context.Context, v ...interface{}) + func (l *Logger) InfoEvent(ctx context.Context) *Event + func (l *Logger) Infof(ctx context.Context, format string, v ...interface{}) + func (l *Logger) Panic(ctx context.Context, v ...interface{}) + func (l *Logger) PanicEvent(ctx context.Context) *Event + func (l *Logger) Panicf(ctx context.Context, format string, v ...interface{}) + func (l *Logger) SetCallerFlag(isEnabled bool) + func (l *Logger) SetInterestContextKeys(keys []interface{}) + func (l *Logger) SetLevel(level string) (err error) + func (l *Logger) Warn(ctx context.Context, v ...interface{}) + func (l *Logger) WarnEvent(ctx context.Context) *Event + func (l *Logger) Warnf(ctx context.Context, format string, v ...interface{}) + type StandardWriter struct + func (sw *StandardWriter) Flush() (err error) + func (sw *StandardWriter) Write(p []byte) (n int, err error) + func (sw *StandardWriter) WriteLevel(level Level, message []byte) (n int, err error)