Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultErrLogger ¶ added in v1.7.0
func DefaultErrLogger(args ...any)
DefaultErrLogger is the default error logger which prints using standard go log pkg
func WithErrLogger ¶ added in v1.7.0
func WithErrLogger(l Logger)
WithErrLogger sets the global error logger
func WithLogger ¶ added in v1.4.0
func WithLogger(l Logger)
WithLogger sets the global standard logger
Types ¶
type Logger ¶
type Logger func(...interface{})
Logger defines the interface for logging.
var DefaultLogger Logger = func(args ...interface{}) {}
DefaultLogger is a no-op logger function that does nothing
func GetErrLogger ¶ added in v1.7.0
func GetErrLogger() Logger
GetErrLogger gets the global error logger
Click to show internal directories.
Click to hide internal directories.