Logs

Find you-agent-factory runtime logs under the selected log root, manage rolling retention, and use CLI --verbose / --debug diagnostics without confusing logs with metrics or record/replay.

How To Use

Start from the default log root when you need to inspect recent factory runs. Runtime logs are structured JSON rolling files grouped by UTC start date under that root (default ~/.you-agent-factory/logs). Use the retention and rotation controls below when you need a different root, retention window, backup count, size limit, or compression for rotated files. Pass a runtime-log flag on you run to set or inspect the log root for one invocation. CLI --verbose emits concise command diagnostics to stderr; --debug emits lower-level diagnostics where supported and implies --verbose; --json writes structured success output to stdout while diagnostics remain on stderr. Keep runtime logs separate from metrics files (a separate structured JSONL channel) and from record/replay artifacts when diagnosing a run.

Default log root

~/.you-agent-factory/logs
FlagEffect
--runtime-log-dirRoot directory for structured runtime log files grouped by UTC start date (default ~/.you-agent-factory/logs)
--runtime-log-max-age-daysMaximum days to retain rotated runtime log files (default 30)
--runtime-log-max-backupsMaximum rotated runtime log files to retain (default 20)
--runtime-log-max-size-mbRotate each runtime log file after this many megabytes (default 100)
--runtime-log-compressCompress rotated runtime log files

Set the runtime log root for one run

you run --dir ./factory --runtime-log-dir ~/.you-agent-factory/logs
FlagEffect
--verboseEmit concise command diagnostics to stderr
--debugEmit lower-level command diagnostics where supported (implies --verbose)
--jsonEmit structured JSON on stdout for supported commands; diagnostics remain on stderr

Emit concise stderr diagnostics for one run

you run --dir ./factory --verbose

Channel boundaries

  • System logs include command stdout and stderr only on command failures.
  • Environment details are record-channel diagnostics only, not the runtime-log channel.

Limits And Assumptions

Logs covers runtime logs and CLI diagnostics for you-agent-factory. It is not a sync of packaged CLI docs, not the metrics reference, not record/replay artifact management, not FactoryEvent or session event-stream contracts, not agent-run tool-diagnostics inspection, and not the OpenAPI or API reference. Sibling links and packaged you docs topics aid discovery only; they are not required to understand runtime logs and CLI diagnostics here.

Tags