Basic Configuration
Add logging configuration to your YAML config file at the top-level root:Log Levels
The
verbose
log level can significantly impact performance due to the volume of log data generated. Use it only for debugging specific issues, not in production.Level | Description | Use Case |
---|---|---|
error | Only critical errors | Production environments |
warning | Warnings and errors (default) | Normal operation |
info | Informational messages | Basic monitoring |
debug | Detailed debugging information | Development and troubleshooting |
verbose | Maximum detail including internal operations | Deep debugging (may impact performance) |
Log Output
Console Output
Logs are written to standard output (stdout) and standard error (stderr) by default. The verbosity is controlled by the configured log level.File Output
Debug-level logs are automatically saved to disk while the Edge Server is running. These logs are stored in theditto_logs
subdirectory within the persistence directory.
Default location:
Configuration Examples
Production Configuration
Minimal logging for performance:Troubleshooting Configuration
Balanced approach for investigating issues:Docker Logs
To persist logs between container restarts, mount the persistence directory:Best Practices
-
Start with
warning
level: Use the default warning level for normal operation. -
Use
debug
for troubleshooting: When investigating issues, temporarily increase to debug level. -
Avoid
verbose
: The verbose level should only be used for short periods during debugging. - Centralize logs: In production, consider shipping logs to a centralized logging system for analysis.