Documentation
¶
Index ¶
- Constants
- func New(ss ...settings.Setting[Option]) *slog.Logger
- func WithDisableConsole() settings.Setting[Option]
- func WithFile(file string) settings.Setting[Option]
- func WithLumberjack(log *lumberjack.Logger) settings.Setting[Option]
- func WithTimeLayout(timeLayout string) settings.Setting[Option]
- type Format
- type Option
Constants ¶
View Source
const ( // DefaultTimeLayout the default time layout; DefaultTimeLayout = time.RFC3339 )
Variables ¶
This section is empty.
Functions ¶
func WithDisableConsole ¶
WithDisableConsole WithEnableConsole write log to os.Stdout or os.Stderr
func WithLumberjack ¶
func WithLumberjack(log *lumberjack.Logger) settings.Setting[Option]
WithLumberjack write log to some File with rotation
Types ¶
Click to show internal directories.
Click to hide internal directories.