Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitSubModule ¶
func InitSubModule()
func NewErrReport ¶
func NewJsonCodec ¶
NewJsonCodec encodes error data as JSON documents. If `pretty` is set to `true` the output will be indented for readability.
Types ¶
type LoggerService ¶
type LoggerService interface {
InnerLogger() any
Clone() LoggerService
Level() Level
SetLevel(lvl Level)
SetContext(key string, value string)
GetContext(key string) string
RemoveContext(key string)
Debug(message string, data Attr)
Debugf(format string, args ...any)
Info(message string, data Attr)
Infof(format string, args ...any)
Warn(message string, data Attr)
Warnf(format string, args ...any)
Error(message string, err error)
Errorf(format string, args ...any)
}
func Logger ¶
func Logger() LoggerService
func NewLogger ¶
func NewLogger(levels ...Level) LoggerService
Click to show internal directories.
Click to hide internal directories.