bend-kit-notch
Releases (5)
Definitions (44)
notch.bend
- type Level
- type Value
- type Field
- type FormatLogfmt is written as Go's slog TextHandler writes it.
- type Loggerctx holds the fields from with, oldest first.
- def Level.rank
- def Level.name
- def text
- def json
- def withA logger that adds fs to every line, after the fields it already adds.
- def enabled
- def str
- def num
- def flag
- def hex
- def esc.ctl
- def esc.cJSON (RFC 8259 §7): quote, backslash and control chars are escaped.
- def esc
- def quote
- def bare.cA bare logfmt token has no whitespace, controls, '=', quote or DEL.
- def bare.go
- def bare
- def tq.if
- def tqA logfmt key or string value: bare when it can be, else a JSON string.
- def Bool.word
- def Value.text
- def Value.json
- def fields.text
- def fields.json
- def time.text
- def time.json
- def render.as
- def renderOne line, without its newline, whatever the level.
- def line.if
- def lineThe line, or None when lvl is below the logger's level.
- def stamp
- def log.if
- def logWrites the line to stderr, stamped with the wall clock in RFC 3339.
- def file.ifWrite a stamped line and newline to a File; the returned handle must be kept or closed.
- def file
- def debug
- def info
- def warn
- def error