Skip to content

feat(claude-trace): add --output-dir option for custom log directory#57

Open
zwf2git wants to merge 1 commit intobadlogic:mainfrom
zwf2git:feature/add-output-dir-option
Open

feat(claude-trace): add --output-dir option for custom log directory#57
zwf2git wants to merge 1 commit intobadlogic:mainfrom
zwf2git:feature/add-output-dir-option

Conversation

@zwf2git
Copy link

@zwf2git zwf2git commented Jan 28, 2026

Summary

  • Add `--output-dir` CLI parameter to customize log output directory
  • Default behavior unchanged (logs to `.claude-trace/`)

Usage

```bash

Use custom output directory

claude-trace --output-dir /path/to/logs

Combine with custom log name

claude-trace --output-dir ~/my-traces --log my-session
```

Changes

  • `cli.ts`: Parse --output-dir argument, pass via environment variable
  • `interceptor-loader.js`: Read env and pass logDirectory config
  • `README.md`: Add documentation and examples

  - Add --output-dir CLI parameter to specify custom output directory
  - Pass CLAUDE_TRACE_OUTPUT_DIR environment variable to interceptor
  - Update interceptor-loader to read env and pass logDirectory config
  - Update README with usage examples
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants