Documentation
¶
Index ¶
Constants ¶
View Source
const ( FormatText = "text" FormatJSON = "json" )
View Source
const ComponentKey = "component"
ComponentKey tags every record with the part of the system that wrote it.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*options)
func WithWriter ¶
WithWriter sends records somewhere other than os.Stdout.
func WithoutDefault ¶
func WithoutDefault() Option
WithoutDefault leaves the package-level slog default alone, so a process can boot a logger without every other one in it changing underneath.
Click to show internal directories.
Click to hide internal directories.