From 913a974eca2522ba7c6d27066481bb2c6635db53 Mon Sep 17 00:00:00 2001 From: Bernhard Guillon Date: Mon, 6 Jul 2026 22:16:37 +0200 Subject: 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 --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'README.md') 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 ``` -- cgit v1.2.3