Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLogLevel ¶
GetLogLevel returns the slog.Level for the given logLevel string. It defaults to slog.LevelInfo.
func InitDedupJSONLogger ¶
InitDedupJSONLogger initializes a default slog.Logger with the given logLevel string.
Types ¶
type DedupJSONHandler ¶
type DedupJSONHandler struct {
// contains filtered or unexported fields
}
func (DedupJSONHandler) Handle ¶
Handle replaces the slog.JSONHandler.Handle method to deduplicate log messages.
Click to show internal directories.
Click to hide internal directories.