Documentation
¶
Index ¶
- func Debug(ctx context.Context, msg string, args ...any)
- func Error(ctx context.Context, err error, args ...any)
- func Fatal(ctx context.Context, err error, args ...any)
- func Info(ctx context.Context, msg string, args ...any)
- func SetLevel(level Level) error
- func SetWithStackLevel(level slog.Level)
- func Warn(ctx context.Context, err error, args ...any)
- func With(ctx context.Context, keyvals ...any) context.Context
- type Level
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Fatal ¶
Fatal logs a fatal message with call stack trace. It will call os.Exit(1) after logging.
func SetWithStackLevel ¶
SetWithStackLevel sets the minimum log level that will include stack traces. It should not be called in init().
Types ¶
Click to show internal directories.
Click to hide internal directories.