# Provisioning Daemon Logging Configuration Fragment

[[elements]]
border_top = true
border_bottom = false
name = "daemon_logging_header"
title = "📝 Logging Configuration"
type = "section_header"

[[elements]]
default = "info"
help = "Logging level"
name = "daemon_logging_level"
nickel_path = ["provisioning_daemon", "logging", "level"]
options = ["trace", "debug", "info", "warn", "error"]
prompt = "Log Level"
type = "select"

[[elements]]
default = "/var/log/provisioning/daemon.log"
help = "Log file path"
name = "daemon_logging_file"
nickel_path = ["provisioning_daemon", "logging", "file"]
prompt = "Log File"
required = true
type = "text"

[[elements]]
default = "json"
help = "Log format"
name = "daemon_logging_format"
nickel_path = ["provisioning_daemon", "logging", "format"]
options = ["json", "text"]
prompt = "Log Format"
type = "select"

[[elements]]
default = false
help = "Send logs to syslog"
name = "daemon_logging_syslog"
nickel_path = ["provisioning_daemon", "logging", "syslog"]
prompt = "Enable Syslog"
type = "confirm"
