Skip to main content

Module node_log

Module node_log 

Source
Expand description

Rotating JSON-lines log for the node. Path comes from the caller or GATE4AGENT_NODE_LOG — never a hardcoded absolute path.

Functions§

env_name
error
info
init
Install the file sink. Also mirrors every line to stderr. Safe to call more than once: the first successful path wins.
init_from_env
Init from GATE4AGENT_NODE_LOG when set. No-op when unset.
path_beside_state
Resolve the default log path next to an enroll/state directory (<state>/node.log), without hardcoding a home root.
warn