Documentation
¶
Index ¶
- Constants
- Variables
- func CorrelationID(ctx context.Context) string
- func CorrelationIDAttr(ctx context.Context) slog.Attr
- func GenerateCorrelationID() slog.Attr
- func LogLevel(level string) slog.Level
- func New(logPath, level string) *slog.Logger
- func ServerType(ctx context.Context) string
- func ServerTypeAttr(ctx context.Context) slog.Attr
Constants ¶
View Source
const ( CorrelationIDKey = "correlation_id" ServerTypeKey = "server_type" )
Variables ¶
View Source
var ( CorrelationIDContextKey = contextKey(CorrelationIDKey) ServerTypeContextKey = contextKey(ServerTypeKey) )
Functions ¶
func CorrelationID ¶ added in v3.1.0
func GenerateCorrelationID ¶
func ServerType ¶ added in v3.2.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.