Documentation
¶
Overview ¶
Package jlog exposes Jelly's public logging API.
Index ¶
- Constants
- func Debug(msg string, args ...any)
- func Error(msg string, args ...any)
- func Fatal(msg string, args ...any)
- func Info(msg string, args ...any)
- func Init(cfg Config)
- func RequestIDFromContext(ctx context.Context) string
- func Reset()
- func Warn(msg string, args ...any)
- func WithExecutionContext(ctx context.Context, value ExecutionContext) context.Context
- func WithRequestID(ctx context.Context, requestID string) context.Context
- type ColorMode
- type Config
- type Entry
- type ExecutionContext
- type Format
- type Level
- type Logger
- type Mode
Constants ¶
View Source
const ( DebugLevel = logging.DebugLevel InfoLevel = logging.InfoLevel WarnLevel = logging.WarnLevel ErrorLevel = logging.ErrorLevel DevelopmentMode = logging.DevelopmentMode ProductionMode = logging.ProductionMode PrettyFormat = logging.PrettyFormat CompactFormat = logging.CompactFormat JSONFormat = logging.JSONFormat AutoColor = logging.AutoColor EnabledColor = logging.EnabledColor DisabledColor = logging.DisabledColor )
Variables ¶
This section is empty.
Functions ¶
func RequestIDFromContext ¶
func WithExecutionContext ¶
func WithExecutionContext(ctx context.Context, value ExecutionContext) context.Context
Types ¶
type Config ¶
func DevelopmentConfig ¶
func DevelopmentConfig() Config
func ProductionConfig ¶
func ProductionConfig() Config
type ExecutionContext ¶
type ExecutionContext = logging.ExecutionContext
func ExecutionContextFromContext ¶
func ExecutionContextFromContext(ctx context.Context) ExecutionContext
Click to show internal directories.
Click to hide internal directories.