Skip to main content

Logging

Configuration

level
string (The log level)
Default: "info"
Enum: "trace" "debug" "info" "warning" "error" "critical" "off"

This setting expects one of the allowed strings to adjust the logging level. Use this with care! Producing a lot of IO by enabling the debug output might decrease the performance of the server.

file
string (Log file name)

Write all log messages to a file.

syslog
boolean (Enable syslog logging)
Default: false

If enabled VILLASnode will log to the system log.

Array of objects (Logging expressions)

The logging expression allow for a fine grained control of log levels per individual logger instance. Expressions are provided as a list of logger name pattern and the desired level.

Note: The expressions are evaluated in the order of their appearance in the list.

{
  • "level": "trace",
  • "file": "string",
  • "syslog": false,
  • "expressions": [
    ]
}

Example

logging = {
file = "/var/log/villas-node.log"
level = "info" // global logging level
expressions = (
{
// Enable debug logging for statistics hook
name = "hook:*",
level = "debug"
}
)
}