Documentation
¶
Overview ¶
Package nodes_log provides log.info, log.warn, and log.error as pass-through nodes. Each emits a structured slog line and returns the input unchanged, so a .nflow pipeline can insert observability between steps without leaving the pipeline.
Typical use:
{ value: "starting" } -> log.info -> actual_work
Index ¶
Constants ¶
View Source
const ID = "nodes_log"
Variables ¶
View Source
var ( LogInfo = newLogNode("log.info", slog.LevelInfo) LogWarn = newLogNode("log.warn", slog.LevelWarn) LogError = newLogNode("log.error", slog.LevelError) )
LogInfo, LogWarn, LogError emit a structured line at the matching slog level and return the input unchanged. The message field, when present, becomes the slog message; every other field becomes an attribute.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.