- Remove KCL ecosystem (~220 files deleted) - Migrate all infrastructure to Nickel schema system - Consolidate documentation: legacy docs → provisioning/docs/src/ - Add CI/CD workflows (.github/) and Rust build config (.cargo/) - Update core system for Nickel schema parsing - Update README.md and CHANGES.md for v5.0.0 release - Fix pre-commit hooks: end-of-file, trailing-whitespace - Breaking changes: KCL workspaces require migration - Migration bridge available in docs/src/development/
56 lines
1.1 KiB
Plaintext
56 lines
1.1 KiB
Plaintext
# Logging Default Values
|
|
# Common defaults for log level, format, and output
|
|
|
|
let logging_schema = import "../../schemas/common/logging.ncl" in
|
|
|
|
{
|
|
logging | logging_schema.LoggingConfig = {
|
|
# Default log level: info
|
|
level = "&",
|
|
|
|
# Default format: text (human-readable)
|
|
format = "&",
|
|
|
|
# Default output: stdout
|
|
outputs = ["stdout"],
|
|
|
|
# File Output Configuration
|
|
file = {
|
|
path = "/var/log/provisioning/service.log",
|
|
max_size = 104857600,
|
|
max_backups = 10,
|
|
max_age = 30,
|
|
compress = false,
|
|
},
|
|
|
|
# Syslog Configuration
|
|
syslog = {
|
|
protocol = "udp",
|
|
},
|
|
|
|
# Structured Logging Fields
|
|
fields = {
|
|
service_name = true,
|
|
hostname = true,
|
|
pid = true,
|
|
timestamp = true,
|
|
caller = false,
|
|
stack_trace = false,
|
|
},
|
|
|
|
# Sampling Configuration
|
|
sampling = {
|
|
enabled = false,
|
|
initial = 100,
|
|
thereafter = 100,
|
|
},
|
|
|
|
# Performance Logging
|
|
performance = {
|
|
enabled = false,
|
|
slow_threshold = 1000,
|
|
memory_info = false,
|
|
},
|
|
},
|
|
}
|