Documentation
¶
Index ¶
- Constants
- Variables
- func ContextUUID(ctx context.Context) string
- func ContextWithUUID(ctx context.Context, uuid string) context.Context
- func DebugT(msg string, tags ...Tag)
- func Debugf(format string, args ...any)
- func ErrorT(msg string, tags ...Tag)
- func Errorf(format string, args ...any)
- func PrintT(msg string, tags ...Tag)
- func Printf(format string, args ...any)
- func Start(ctx context.Context)
- func Sync()
- func WarnT(msg string, tags ...Tag)
- func Warnf(format string, args ...any)
- type Logger
- type Reporter
- type Tag
Constants ¶
View Source
const ( DefaultFlags = log.LUTC | log.Ldate | log.Ltime | log.Lmsgprefix LevelDebug = "debug" LevelInfo = "info" LevelWarn = "warn" LevelError = "error" )
Variables ¶
View Source
var ( HoneybadgerAPIKey string HoneybadgerSync bool )
Functions ¶
func ContextUUID ¶
Types ¶
type Logger ¶
type Logger interface { Debugf(string, ...any) Printf(string, ...any) Warnf(string, ...any) Errorf(string, ...any) DebugT(string, ...Tag) PrintT(string, ...Tag) WarnT(string, ...Tag) ErrorT(string, ...Tag) Monitor() }
func ContextLogger ¶
type Reporter ¶
func NewNoneReporter ¶
func NewNoneReporter() Reporter
Click to show internal directories.
Click to hide internal directories.