Documentation ¶
Index ¶
- type StreetLogr
- func (l StreetLogr) Handle(name string) StreetLogr
- func (l StreetLogr) Peep(level int) StreetLogr
- func (l StreetLogr) Sus(err error, msg string, keysAndValues ...interface{})
- func (l StreetLogr) Swag(keysAndValues ...interface{}) StreetLogr
- func (l StreetLogr) Word(msg string, keysAndValues ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StreetLogr ¶
StreetLogr is a struct that embeds the logr.Logger interface and renames the methods with street slang for a cooler vibe.
func (StreetLogr) Handle ¶
func (l StreetLogr) Handle(name string) StreetLogr
Handle adds a new name element to the logger. In street slang, "handle" often refers to a nickname or alias.
func (StreetLogr) Peep ¶
func (l StreetLogr) Peep(level int) StreetLogr
Peep returns a new logger with the specified verbosity level. "Peep" is slang for taking a quick look at something.
func (StreetLogr) Sus ¶
func (l StreetLogr) Sus(err error, msg string, keysAndValues ...interface{})
Sus logs error messages. "Sus" is slang for suspicious or something not right.
func (StreetLogr) Swag ¶
func (l StreetLogr) Swag(keysAndValues ...interface{}) StreetLogr
Swag adds key-value pairs to the logger's context. "Swag" is a popular street term referring to a cool, confident style.
func (StreetLogr) Word ¶
func (l StreetLogr) Word(msg string, keysAndValues ...interface{})
Word logs informational messages. It's like the "word on the street."
Click to show internal directories.
Click to hide internal directories.