Skip to content

CLI and Action Configuration

The current release keeps configuration intentionally small. The CLI exposes the canonical contract; the GitHub Action wrapper maps its inputs onto the same options.

SurfaceHow it is provided
CLIFirst positional argument, or stdin when omitted.
Actionlog-path input.
LibraryinputPath argument to processLogFile, or a Readable stream to processLogStream.

The parser is stream-based end-to-end, so large logs can be handled without loading the whole file into memory.

SurfaceHow it is provided
CLI--output <path>, or stdout when omitted.
ActionWritten next to the input as <basename>.logstrip<ext>.
LibraryoutputPath argument to processLogFile, or a Writable stream to processLogStream.

Default file naming when running the action or omitting --output:

InputOutput
raw.lograw.logstrip.log
test-output.txttest-output.logstrip.txt
rawraw.logstrip.log

Accepted values:

ValueStatus
lowaccepted
mediumaccepted
highaccepted
aggressiveaccepted
autodefault

auto is the default. It starts at high, adapts the effective level to the log via a sliding decision window, and runs the detection and compression boosters (stack-window collapse, root-cause cascade pruning, multilingual keyword detection, majority-vote format detection, adaptive context windows) automatically. The fixed levels (low, medium, high, aggressive) give you deterministic, non-adaptive filtering when you need it.

SurfaceHow to get stats
CLI--stats (human-readable, stderr) or --json (machine-readable, stdout, requires --output).
ActionAlways written as a GitHub Step Summary table.
LibraryReturned as a LogStripResult from processLogFile / processLogStream.
Terminal window
npm run typecheck
npm run test:coverage
npm run build
npm run docs:install # once, installs the docs site dependencies
npm run docs:build

The coverage configuration requires 100% statements, branches, functions, and lines across src/core, src/cli, and src/action.