aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorBernhard Guillon <Bernhard.Guillon@begu.org>2026-07-06 22:16:37 +0200
committerBernhard Guillon <Bernhard.Guillon@begu.org>2026-07-06 22:16:37 +0200
commit913a974eca2522ba7c6d27066481bb2c6635db53 (patch)
treef0cfc1ee173a762662b586fca5db9db422592093 /README.md
parent5f2ba9c3d37a1c8658aea411188a6763e982b1ab (diff)
downloadsourcewatch-913a974eca2522ba7c6d27066481bb2c6635db53.tar.gz
sourcewatch-913a974eca2522ba7c6d27066481bb2c6635db53.zip
Add log level system and sync logging
- log.go: log level system (DEBUG, INFO, WARN, ERROR, NONE) - CLI: -log-level flag (default info), -verbose as shorthand for debug - Watcher: logs sync/remove actions at INFO level - Watcher: logs events at DEBUG level - Errors: structured error messages (DISK FULL, PERMISSION DENIED, etc.) - Updated README with -log-level flag
Diffstat (limited to 'README.md')
-rw-r--r--README.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/README.md b/README.md
index 2046948..46faabc 100644
--- a/README.md
+++ b/README.md
@@ -35,7 +35,8 @@ podman run -v c:\source:/host:ro -v watchdata:/data sourcewatch
```
-host string Host source directory (default "/host")
-data string Data destination directory (default "/data")
--verbose Enable verbose logging
+-verbose Enable verbose logging (shorthand for -log-level debug)
+-log-level string Log level: debug, info, warn, error, none (default "info")
-dry-run Preview what would be synced without copying
```