Logging Configuration¶
The logging section configures how your node records and manages log output.
Overview¶
Logging configuration controls:
Log levels and verbosity
Log file locations
Console output
Log rotation
Debug mode
Configuration Example¶
[logging]
level = "INFO"
filename = "~/.manta/logs/nodes/node.log"
log_to_file = true
log_to_console = false
debug_mode = true
max_file_size = "100M"
backup_count = 5
Configuration Fields¶
level¶
Type: string
Default: "INFO"
Description: Logging level
Values: "DEBUG"
, "INFO"
, "WARNING"
, "ERROR"
, "CRITICAL"
# Development
level = "DEBUG"
# Production
level = "WARNING"
filename¶
Type: string
Default: "~/.manta/logs/nodes/node.log"
Description: Path to log file
filename = "~/.manta/logs/nodes/production.log"
filename = "/var/log/manta/node.log"
log_to_file¶
Type: boolean
Default: true
Description: Whether to write logs to file
log_to_console¶
Type: boolean
Default: false
Description: Whether to output logs to console
debug_mode¶
Type: boolean
Default: true
Description: Enable additional debug information
max_file_size¶
Type: string
Default: "100M"
Description: Maximum log file size before rotation
backup_count¶
Type: integer
Default: 5
Description: Number of backup log files to keep
See Also¶
Logs Command - Viewing logs
Configuration Command - Configuration management