5ac33987c0
- Add tracing-appender and tracing-journald for production logging - Add LoggingConfig with trace_sample_rate, json_output, journald options - Expand init_logging() with file rotation, journald, and stderr layers - Add sanitize_path() helper for PII protection in logs - Instrument FUSE operations with #[instrument] and trace decision points - Instrument gRPC handlers (10 methods) with span correlation - Add spawn instrumentation for health monitor, indexer, watcher tasks - Add broadcast lag handling (RecvError::Lagged) in event subscribers - Fix webhook.rs expect() calls with proper error handling - Add logging to patterns.rs, collections.rs, artwork.rs database ops - Add Drop impl logging for PluginManager and WatchHandle - Update systemd service with rate limiting and journal output - Add logrotate config and example config.toml with logging section
31 lines
488 B
TOML
31 lines
488 B
TOML
mount_point = "/mnt/music"
|
|
cache_dir = "/var/cache/musicfs"
|
|
|
|
[logging]
|
|
log_dir = "/var/log/musicfs"
|
|
json_output = true
|
|
journald = true
|
|
level = "musicfs=info,warn"
|
|
trace_sample_rate = 1.0
|
|
|
|
[cache]
|
|
metadata_cache_mb = 100
|
|
content_cache_gb = 10
|
|
|
|
[health]
|
|
check_interval_secs = 30
|
|
timeout_ms = 5000
|
|
unhealthy_threshold = 3
|
|
|
|
[[origins]]
|
|
id = "local"
|
|
origin_type = "local"
|
|
priority = 1
|
|
path = "/srv/music"
|
|
|
|
[[origins]]
|
|
id = "nas"
|
|
origin_type = "nfs"
|
|
priority = 2
|
|
mount_point = "/mnt/nas/music"
|