Documentation
¶
Index ¶
- Constants
- type Environment
- type Logger
- func (l *Logger) Debug(ctx context.Context, msg string, fields map[string]any)
- func (l *Logger) Error(ctx context.Context, msg string, fields map[string]any)
- func (l *Logger) Info(ctx context.Context, msg string, fields map[string]any)
- func (l *Logger) Warn(ctx context.Context, msg string, fields map[string]any)
Constants ¶
View Source
const ( TraceIDKey ctxKey = "trace_id" RequestIDKey ctxKey = "request_id" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Environment ¶
type Environment string
const ( EnvironmentDevelopment Environment = "development" EnvironmentProduction Environment = "production" EnvironmentTest Environment = "test" EnvironmentLocal Environment = "local" )
Click to show internal directories.
Click to hide internal directories.