@scotthuang/hook-logger
v1.0.4
Published
Log all hook stages for debugging in OpenClaw
Readme
@scotthuang/hook-logger
OpenClaw plugin for logging all hook stages for debugging.
Installation
openclaw plugins install @scotthuang/hook-loggerThen restart the Gateway:
openclaw gateway restartFeatures
Logs the following hooks:
before_model_resolve- Before model resolutionbefore_prompt_build- Before prompt constructionbefore_agent_start- Before agent startsllm_input- LLM input (model, provider, prompt)llm_output- LLM output (texts, stop reason)agent_end- Agent end (success, error, duration)before_compaction- Before message compactionafter_compaction- After message compactionbefore_reset- Before session resetmessage_received- Message receivedmessage_sending- Message sendingmessage_sent- Message sentbefore_tool_call- Before tool callafter_tool_call- After tool calltool_result_persist- Tool result persistedbefore_message_write- Before message writesession_start- Session startsession_end- Session endgateway_start- Gateway startgateway_stop- Gateway stop
Log Location
Logs are saved to: ~/.openclaw/workspace/logs/hook-logger/
Development
# Install dependencies
npm install
# Run tests
npm testLicense
MIT
