Skip to content

Add CLI log file output#71

Merged
mbsantiago merged 3 commits into
mainfrom
enhancement/logs-to-file
Jun 23, 2026
Merged

Add CLI log file output#71
mbsantiago merged 3 commits into
mainfrom
enhancement/logs-to-file

Conversation

@mbsantiago

@mbsantiago mbsantiago commented Jun 23, 2026

Copy link
Copy Markdown
Collaborator

Summary

Add support for saving CLI logs to a file with a new global --log-file option.

What changed

  • Added --log-file to the root batdetect2 CLI command
  • Updated logging setup to write to both:
    • the terminal
    • the specified log file
  • Added CLI tests covering:
    • help output
    • log file creation and contents
  • Updated docs with:
    • a note in the CLI reference
    • a tutorial example for using --log-file

Example

batdetect2 --log-file outputs/logs/cli.log process directory \
  path/to/audio \
  path/to/outputs

@mbsantiago mbsantiago merged commit 833db23 into main Jun 23, 2026
4 checks passed
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.

1 participant