@scotthuang/tool-logger
v1.0.4
Published
Log all tool inputs and outputs in OpenClaw
Readme
@scotthuang/tool-logger
OpenClaw plugin for logging all tool inputs and outputs.
Installation
openclaw plugins install @scotthuang/tool-loggerThen restart the Gateway:
openclaw gateway restartFeatures
Logs tool calls with:
- Input (IN) - Tool name, session key, agent ID, timeout, parameters
- Output (OUT) - Tool name, duration, result size, result preview
Log format:
[timestamp] IN | tool-name | session-key | agent-id | timeout | params
[timestamp] OUT | tool-name | duration | result-size | result-previewLog Location
Logs are saved to: ~/.openclaw/workspace/logs/tool-logger/
Log Rotation
Keeps logs for the last 3 days. Older logs are automatically cleaned up.
Development
# Install dependencies
npm install
# Run tests
npm testLicense
MIT
