Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHandler ¶
Returns either JSON or TEXT depending on the environment variable LOGS_FORMAT_JSON Defaults to JSON
func NewJsonLogHandler ¶
func NewJsonLogHandler() *slog.JSONHandler
func NewJsonLogLogger ¶
func NewJsonSLogger ¶
func NewTextLogHandler ¶
func NewTextLogHandler() *slog.TextHandler
func ShouldFormatAsJson ¶
func ShouldFormatAsJson() bool
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.