VXVX Docs

Log

LoggerConfig

Logging is configured in ServerConfig.log (LoggerConfig). Schema: protos/proto/vx/log/logger.proto.

LoggerConfig

FieldTypeDescription
logLevelLevelMinimum level: DEBUG, INFO, WARN, ERROR, FATAL, DISABLED
filePathstringLog file path
logFileDirstringIf filePath is empty, write timestamped files here (2006-01-02T15:04:05.txt)
consoleWriterboolHuman-readable console output
showColorboolColorized logs (with console writer)
showCallerboolInclude caller location
redactboolRedact domains and IPs in log lines

Example

{
  "log": {
    "logLevel": "INFO",
    "filePath": "/var/log/vx/vx.log",
    "redact": false
  }
}

UserLoggerConfig

UserLoggerConfig in the same proto file is for VX client session logging (enable, logAppId, logSessionEnd, logRealtimeUsage). It is not part of ServerConfig; the client wires it separately.

Comments