Documentation ¶
Index ¶
- func Debugf(c ctx.C, f string, args ...any)
- func Errorf(c ctx.C, f string, args ...any)
- func Infof(c ctx.C, f string, args ...any)
- func Warnf(c ctx.C, f string, args ...any)
- func WithLogger(c ctx.C, logger func(Line)) ctx.C
- func WithLoggerAndHelper(c ctx.C, logger func(Line), helper func()) ctx.C
- type Line
- type Loggable
- type RedactedString
- type Tags
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithLogger ¶
return a new context with a custom logger attached to it
Types ¶
type Line ¶
type RedactedString ¶
type RedactedString string
simple string that will log itself as "***"
func (RedactedString) LogAs ¶
func (this RedactedString) LogAs(*Tags) any
Click to show internal directories.
Click to hide internal directories.