Learn how to configure and use the logging system in the Ditto SDK for monitoring and debugging your applications.
ditto-rotating-file
crate that provides thread-safe rotating file writers with automatic compression.
ditto-logs-YYYY-MM-DD-HH-MM-SS.microseconds.log
.log
→ .log.gz
)Parameter | Default | Range | Description |
---|---|---|---|
rotating_log_file_max_size_mb | 1MB | 1MB-1GB | Size trigger for rotation |
rotating_log_file_max_age_h | 24 | 1+ hours | Age trigger for rotation |
rotating_log_file_max_files_on_disk | 15 | 3-64 files | Maximum files to retain |
tracing-subscriber
with JSON formatting