nodes_log

package
v0.79.4 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: Apache-2.0 Imports: 6 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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) compiler.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