fleet-memory/hindsight-integrations/openclaw/src
akhater d441ab814d
feat(openclaw): configurable logging with structured output (#739)
* feat(openclaw): configurable logging with structured output

Replace raw console.log/warn/error spam with a structured logger.
New plugin settings: logLevel, logSummaryIntervalMs, logCompact.
Bank mission log demoted to verbose-only. Retain/recall batched
into periodic summaries. Each recall now shows memory count injected.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* use api.logger for framework-consistent output, show autoRecall/autoRetain on init

Route all log output through OpenClaw's api.logger instead of raw console
calls. Matches mem0 plugin style. Startup now shows mode + feature flags.
Dropped logCompact setting (framework handles formatting). Added subtle
slate-blue color to hindsight prefix for visual differentiation.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* add bank name to init and summary logs, fix singular/plural consistency

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* rename log levels to standard: off, error, warning, info, debug

Per review feedback — use standard level names instead of custom ones.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: billy <billy@oclaw.local>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: Nicolò Boschi <boschi1997@gmail.com>
2026-03-30 10:38:02 +02:00
..
client.test.ts feat(openclaw): v2 recall/retention controls, scalability fixes, and Gemini safety settings (#480) 2026-03-05 16:55:16 +01:00
client.ts feat(openclaw): configurable logging with structured output (#739) 2026-03-30 10:38:02 +02:00
derive-bank-id.test.ts feat(openclaw): v2 recall/retention controls, scalability fixes, and Gemini safety settings (#480) 2026-03-05 16:55:16 +01:00
embed-manager.ts fix(openclaw): remove unused imports, retry health check, suppress unhandled rejection (#373) 2026-02-16 10:02:19 +01:00
index.test.ts feat(openclaw): v2 recall/retention controls, scalability fixes, and Gemini safety settings (#480) 2026-03-05 16:55:16 +01:00
index.ts feat(openclaw): configurable logging with structured output (#739) 2026-03-30 10:38:02 +02:00
logger.ts feat(openclaw): configurable logging with structured output (#739) 2026-03-30 10:38:02 +02:00
moltbot-types.ts fix: rename openclawd to openclaw (#252) 2026-01-30 13:04:42 +01:00
remote-no-llm.test.ts feat(openclaw): v2 recall/retention controls, scalability fixes, and Gemini safety settings (#480) 2026-03-05 16:55:16 +01:00
types.ts feat(openclaw): configurable logging with structured output (#739) 2026-03-30 10:38:02 +02:00