Documentation
¶
Index ¶
Constants ¶
View Source
const (
DefaultTimeFormat = "2006-01-02 15:04:05.000"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct {
Level slog.Level
AddSource bool
Colorful bool
Multiline bool
TimeFormat string
}
func DefaultOptions ¶
func DefaultOptions() *Options
type SlogPretty ¶
type SlogPretty struct {
// contains filtered or unexported fields
}
func New ¶
func New(out io.Writer, opts *Options) *SlogPretty
==================== Initialization ====================
Click to show internal directories.
Click to hide internal directories.