Documentation
¶
Index ¶
- Variables
- func WithContext(ctx context.Context, fields F) context.Context
- type Config
- type F
- type Field
- type Level
- type Logger
- func (l *Logger) Debug(ctx context.Context, msg string, fields ...F)
- func (l *Logger) Error(ctx context.Context, msg string, fields ...F)
- func (l *Logger) Fatal(ctx context.Context, msg string, fields ...F)
- func (l *Logger) Info(ctx context.Context, msg string, fields ...F)
- func (l *Logger) Panic(ctx context.Context, msg string, fields ...F)
- func (l *Logger) Trace(ctx context.Context, msg string, fields ...F)
- func (l *Logger) Warn(ctx context.Context, msg string, fields ...F)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DurationPrecision = time.Millisecond TimeFormat = time.RFC3339 )
Functions ¶
Types ¶
type Config ¶
type Config struct { Level Level Output io.Writer Time bool TimeFormat string TimePrecision time.Duration Color bool MinMessageWidth int SortFields bool StackTraceLevel Level StackTraceSkip int }
func DefaultConfig ¶
func DefaultConfig() Config
Click to show internal directories.
Click to hide internal directories.