Documentation
¶
Index ¶
- Constants
- func NewLogger(opts ...Option) (contracts.Logger, error)
- func NewModule() contracts.AppModule
- type Option
- func WithColor() Option
- func WithDefaultReplaceAttr() Option
- func WithJSON() Option
- func WithLevel(level slog.Level) Option
- func WithLevelNames(names map[slog.Leveler]string) Option
- func WithReplaceAttr(f func(groups []string, a slog.Attr) slog.Attr) Option
- func WithSource() Option
- func WithText() Option
- func WithWriter(w io.Writer) Option
Constants ¶
View Source
const ModuleName = "logger"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*config)
func WithDefaultReplaceAttr ¶
func WithDefaultReplaceAttr() Option
func WithSource ¶
func WithSource() Option
func WithWriter ¶
Click to show internal directories.
Click to hide internal directories.