Documentation
¶
Index ¶
Constants ¶
View Source
const ( FormatterText = "text" FormatterJson = "json" )
Formatter types for log output
Variables ¶
This section is empty.
Functions ¶
func GetLevelFromString ¶ added in v1.17.0
GetLevelFromString converts a string log level to log.Level.
Types ¶
type ConsoleHandler ¶ added in v1.17.0
type ConsoleHandler struct {
*IOHandler
}
func NewConsoleHandler ¶ added in v1.17.0
func NewConsoleHandler(config config.Config, json foundation.Json, level slog.Leveler, formatter string) *ConsoleHandler
type IOHandler ¶ added in v1.17.0
type IOHandler struct {
// contains filtered or unexported fields
}
func NewIOHandler ¶ added in v1.17.0
Click to show internal directories.
Click to hide internal directories.