Documentation
¶
Index ¶
- func Attach(parent context.Context, logger Logger) context.Context
- func Debug(ctx context.Context, args ...interface{})
- func Debugf(ctx context.Context, format string, args ...interface{})
- func Error(ctx context.Context, args ...interface{})
- func Errorf(ctx context.Context, format string, args ...interface{})
- func Info(ctx context.Context, args ...interface{})
- func Infof(ctx context.Context, format string, args ...interface{})
- func SetDefault(logger Logger)
- func Sync(ctx context.Context)
- func Warn(ctx context.Context, args ...interface{})
- func Warnf(ctx context.Context, format string, args ...interface{})
- type Entry
- type LevelLogger
- type Logger
- func (l Logger) Debug(args ...interface{})
- func (l Logger) Debugf(format string, args ...interface{})
- func (l Logger) Error(args ...interface{})
- func (l Logger) Errorf(format string, args ...interface{})
- func (l Logger) Info(args ...interface{})
- func (l Logger) Infof(format string, args ...interface{})
- func (l Logger) IsValid() bool
- func (l Logger) Level(lvl level.Level) LevelLogger
- func (l Logger) Sync()
- func (l Logger) Warn(args ...interface{})
- func (l Logger) Warnf(format string, args ...interface{})
- func (l Logger) With(kv ...interface{}) Logger
- type Sink
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetDefault ¶
func SetDefault(logger Logger)
Types ¶
type LevelLogger ¶
type LevelLogger struct {
// contains filtered or unexported fields
}
func (LevelLogger) Print ¶
func (l LevelLogger) Print(args ...interface{})
func (LevelLogger) Printf ¶
func (l LevelLogger) Printf(format string, args ...interface{})
func (LevelLogger) With ¶
func (l LevelLogger) With(kv ...interface{}) LevelLogger
Click to show internal directories.
Click to hide internal directories.