{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/firecracker/json-schema/firecracker-logger-schema.json",
  "title": "Logger",
  "description": "Describes the configuration option for the logging capability.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/firecracker-logger-api-openapi.yml#/components/schemas/Logger",
  "type": "object",
  "properties": {
    "level": {
      "type": "string",
      "description": "Set the level. The possible values are case-insensitive.",
      "enum": [
        "Error",
        "Warning",
        "Info",
        "Debug",
        "Trace",
        "Off"
      ],
      "default": "Info"
    },
    "log_path": {
      "type": "string",
      "description": "Path to the named pipe or file for the human readable log output."
    },
    "show_level": {
      "type": "boolean",
      "description": "Whether or not to output the level in the logs.",
      "default": false
    },
    "show_log_origin": {
      "type": "boolean",
      "description": "Whether or not to include the file path and line number of the log's origin.",
      "default": false
    },
    "module": {
      "type": "string",
      "description": "The module path to filter log messages by."
    }
  }
}