Dosu LogoDosu Logo
Ask
Join our Discord
Organization avatar
Dosu DecantPublic
Dosu
DocumentsDosu Decant
logging
logging
Type
External
Status
Published
Created
Aug 3, 2026
Updated
Aug 3, 2026
Source
docs/logging.md

Operational logging#

decant watch and decant serve emit newline-delimited JSON (JSON Lines) to
stderr. Command results and --json data remain on stdout, so scripts can
consume them without parsing operational logs.

Each record has the same base fields:

  • @timestamp: ISO 8601 event time.
  • level: TRACE, DEBUG, INFO, WARN, ERROR, or FATAL.
  • message: short human-readable description.
  • logger: hierarchical component name such as decant.server.
  • service.name: always decant.
  • event.name: stable, fully qualified event type.

The current event names are:

EventPurpose
decant.logging.configuration.invalidInvalid log level fell back to info.
decant.watch.readySource watcher initialized.
decant.watch.stoppedSource watcher stopped.
decant.sync.completedOne startup, watch, sweep, or manual sync completed.
decant.sync.exceptionA sync failed.
decant.server.startedLocal HTTP server started.
decant.server.stoppedLocal HTTP server stopped.
http.server.requestHTTP request completed with method, route, status, and duration.
http.server.request.exceptionRequest handling raised an exception.
http.server.request.rejectedRequest handling mapped a rejected operation to a non-5xx API response.

Set DECANT_LOG_LEVEL to trace, debug, info, warn (or warning),
error, fatal, or off (or silent). The default is info. HTTP 4xx
outcomes use WARN; 5xx outcomes and exceptions use ERROR.

Logging is local and has no network transport. Completed http.server.request
records use route templates. Rejection and exception diagnostics use the URL
path, but no request record includes query strings, headers, bodies,
source-directory paths, or transcript content. Exception records include the
runtime error message and stack trace, which can contain local code or database
paths. Redirect or pipe stderr to an external processor if retention, rotation,
or shipping is needed; those policies stay outside the application process.

Documents
Bun Standalone Compilation
distribution
releasing
CLI UTF-8 Typography
Codex MCP Call Rendering
Decant Runtime Architecture
AGENTS
README
Documentation Architecture
AGENTS
Archive schema: incident history behind the migration rules
Decision log and roadmap context (through 2026-08-03)
History: the Rust/Elixir/Swift to TypeScript cutover (2026-07)
Ingest-Time Cost Semantics
Decision log and roadmap context (through 2026-08-03)
History: the Rust/Elixir/Swift to TypeScript cutover (2026-07)
Local API and Report Routes
AGENTS
README
MCP Server Integration
MCP Server Slug Disambiguation
Recommendation Scoring
Release Automation
AGENTS
distribution
README
Session Analytics and Statistics
AGENTS
README
Session Lifecycle Management
AGENTS
README
Sync Issue Traceability
AGENTS
CODE_OF_CONDUCT
CONTRIBUTING
PULL_REQUEST_TEMPLATE
README
README
README
README
README
README
SECURITY
Source-Serif-OFL
add-source
logging
pricing
routes