chore: rename project to clawdbot
This commit is contained in:
@@ -7,17 +7,17 @@ read_when:
|
||||
|
||||
# Logging
|
||||
|
||||
Clawdis has two log “surfaces”:
|
||||
Clawdbot has two log “surfaces”:
|
||||
|
||||
- **Console output** (what you see in the terminal / Debug UI).
|
||||
- **File logs** (JSON lines) written by the internal logger.
|
||||
|
||||
## File-based logger
|
||||
|
||||
Clawdis uses a file logger backed by `tslog` (`src/logging.ts`).
|
||||
Clawdbot uses a file logger backed by `tslog` (`src/logging.ts`).
|
||||
|
||||
- Default rolling log file is under `/tmp/clawdis/` (one file per day): `clawdis-YYYY-MM-DD.log`
|
||||
- The log file path and level can be configured via `~/.clawdis/clawdis.json`:
|
||||
- Default rolling log file is under `/tmp/clawdbot/` (one file per day): `clawdbot-YYYY-MM-DD.log`
|
||||
- The log file path and level can be configured via `~/.clawdbot/clawdbot.json`:
|
||||
- `logging.file`
|
||||
- `logging.level`
|
||||
|
||||
@@ -54,7 +54,7 @@ The gateway prints WebSocket protocol logs in two modes:
|
||||
|
||||
### WS log style
|
||||
|
||||
`clawdis gateway` supports a per-gateway style switch:
|
||||
`clawdbot gateway` supports a per-gateway style switch:
|
||||
|
||||
- `--ws-log auto` (default): normal mode is optimized; verbose mode uses compact output
|
||||
- `--ws-log compact`: compact output (paired request/response) when verbose
|
||||
@@ -65,18 +65,18 @@ Examples:
|
||||
|
||||
```bash
|
||||
# optimized (only errors/slow)
|
||||
clawdis gateway
|
||||
clawdbot gateway
|
||||
|
||||
# show all WS traffic (paired)
|
||||
clawdis gateway --verbose --ws-log compact
|
||||
clawdbot gateway --verbose --ws-log compact
|
||||
|
||||
# show all WS traffic (full meta)
|
||||
clawdis gateway --verbose --ws-log full
|
||||
clawdbot gateway --verbose --ws-log full
|
||||
```
|
||||
|
||||
## Console formatting (subsystem logging)
|
||||
|
||||
Clawdis formats console logs via a small wrapper on top of the existing stack:
|
||||
Clawdbot formats console logs via a small wrapper on top of the existing stack:
|
||||
|
||||
- **tslog** for structured file logs (`src/logging.ts`)
|
||||
- **chalk** for colors (`src/globals.ts`)
|
||||
|
||||
Reference in New Issue
Block a user