Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSlogLogger ¶
NOTE: this is only needed when setting the default logger using the
slog.SetDefault method.
Types ¶
type LoggingConfig ¶
type SlogLogger ¶
func NewLogger ¶
func NewLogger(logLevelStr, logType string) *SlogLogger
func (*SlogLogger) Fatal ¶
func (l *SlogLogger) Fatal(s string, args ...any)
NOTE: Use with caution. It's not advisable to use Fatal as its similar to panic
Click to show internal directories.
Click to hide internal directories.