Documentation
¶
Index ¶
- func GetSlogLevel(l zerolog.Level) slog.Level
- func GetSlogger(l *zerolog.Logger) *slog.Logger
- func New(ctx context.Context, cfg *Configuration) (context.Context, error)
- func NewTracedReader(ctx context.Context, r io.Reader) io.Reader
- func NewTracedWriter(ctx context.Context, w io.Writer) io.Writer
- type Configuration
- type TracedReader
- type TracedWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Configuration ¶
type Configuration struct {
ForceColor bool `description:"Force color output (defaults to JSON output if stderr is not a TTY)"`
Level string `description:"Logging level"`
ShortenPath bool `description:"Shorten the caller file path in log output"`
RemovePrefix string `description:"Remove prefix from caller file"`
}
func NewConfiguration ¶
func NewConfiguration() *Configuration
type TracedReader ¶
type TracedReader struct {
// contains filtered or unexported fields
}
type TracedWriter ¶
type TracedWriter struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.