nodes_log

package
v0.20.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 8, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

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 after passing through redact.Map, which masks any field whose name looks like a credential. The input map itself is never mutated — the same value flows downstream unchanged.

Functions

func Bundle

func Bundle(_ map[string]string) core.Bundle

func Library

func Library() action.Library

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL