Documentation ¶
Index ¶
Constants ¶
View Source
const ( TextFormat = "TEXT" JSONFormat = "JSON" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger is a simple slog wrapper
func NewJsonLogger ¶
NewJsonLogger return a json logger
func NewTextLogger ¶
NewTextLogger return a text logger
type Option ¶
type Option func(options *Options)
func WithFormat ¶
func WithOutput ¶
func WithReplaceAttr ¶
func WithSource ¶
Click to show internal directories.
Click to hide internal directories.