Documentation ¶
Index ¶
- Constants
- func AddFields(ctx context.Context, fields Fields) context.Context
- func Level() string
- type DummyLogger
- func (d DummyLogger) Debug(args ...interface{})
- func (d DummyLogger) Debugf(format string, args ...interface{})
- func (d DummyLogger) Error(args ...interface{})
- func (d DummyLogger) Errorf(format string, args ...interface{})
- func (d DummyLogger) Fatal(args ...interface{})
- func (d DummyLogger) Fatalf(format string, args ...interface{})
- func (d DummyLogger) Info(args ...interface{})
- func (d DummyLogger) Infof(format string, args ...interface{})
- func (d DummyLogger) IsTracing() bool
- func (d DummyLogger) Panic(args ...interface{})
- func (d DummyLogger) Panicf(format string, args ...interface{})
- func (d DummyLogger) Trace(args ...interface{})
- func (d DummyLogger) Tracef(format string, args ...interface{})
- func (d DummyLogger) Warn(args ...interface{})
- func (d DummyLogger) Warnf(format string, args ...interface{})
- func (d DummyLogger) Warning(args ...interface{})
- func (d DummyLogger) Warningf(format string, args ...interface{})
- func (d DummyLogger) WithContext(ctx context.Context) Logger
- func (d DummyLogger) WithError(err error) Logger
- func (d DummyLogger) WithField(key string, value interface{}) Logger
- func (d DummyLogger) WithFields(fields Fields) Logger
- type Fields
- type Logger
Constants ¶
View Source
const (
LogFieldsContextKey = contextKey("log_fields")
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DummyLogger ¶
type DummyLogger struct{}
func (DummyLogger) Debug ¶
func (d DummyLogger) Debug(args ...interface{})
func (DummyLogger) Debugf ¶
func (d DummyLogger) Debugf(format string, args ...interface{})
func (DummyLogger) Error ¶
func (d DummyLogger) Error(args ...interface{})
func (DummyLogger) Errorf ¶
func (d DummyLogger) Errorf(format string, args ...interface{})
func (DummyLogger) Fatal ¶
func (d DummyLogger) Fatal(args ...interface{})
func (DummyLogger) Fatalf ¶
func (d DummyLogger) Fatalf(format string, args ...interface{})
func (DummyLogger) Info ¶
func (d DummyLogger) Info(args ...interface{})
func (DummyLogger) Infof ¶
func (d DummyLogger) Infof(format string, args ...interface{})
func (DummyLogger) IsTracing ¶
func (d DummyLogger) IsTracing() bool
func (DummyLogger) Panic ¶
func (d DummyLogger) Panic(args ...interface{})
func (DummyLogger) Panicf ¶
func (d DummyLogger) Panicf(format string, args ...interface{})
func (DummyLogger) Trace ¶
func (d DummyLogger) Trace(args ...interface{})
func (DummyLogger) Tracef ¶
func (d DummyLogger) Tracef(format string, args ...interface{})
func (DummyLogger) Warn ¶
func (d DummyLogger) Warn(args ...interface{})
func (DummyLogger) Warnf ¶
func (d DummyLogger) Warnf(format string, args ...interface{})
func (DummyLogger) Warning ¶
func (d DummyLogger) Warning(args ...interface{})
func (DummyLogger) Warningf ¶
func (d DummyLogger) Warningf(format string, args ...interface{})
func (DummyLogger) WithContext ¶
func (d DummyLogger) WithContext(ctx context.Context) Logger
func (DummyLogger) WithError ¶
func (d DummyLogger) WithError(err error) Logger
func (DummyLogger) WithField ¶
func (d DummyLogger) WithField(key string, value interface{}) Logger
func (DummyLogger) WithFields ¶
func (d DummyLogger) WithFields(fields Fields) Logger
type Logger ¶
type Logger interface { WithContext(ctx context.Context) Logger WithField(key string, value interface{}) Logger WithFields(fields Fields) Logger WithError(err error) Logger Trace(args ...interface{}) Debug(args ...interface{}) Info(args ...interface{}) Warn(args ...interface{}) Warning(args ...interface{}) Error(args ...interface{}) Fatal(args ...interface{}) Panic(args ...interface{}) Tracef(format string, args ...interface{}) Debugf(format string, args ...interface{}) Infof(format string, args ...interface{}) Warnf(format string, args ...interface{}) Warningf(format string, args ...interface{}) Errorf(format string, args ...interface{}) Fatalf(format string, args ...interface{}) Panicf(format string, args ...interface{}) IsTracing() bool }
func FromContext ¶
Click to show internal directories.
Click to hide internal directories.