aboutsummaryrefslogtreecommitdiff
path: root/schemas_json
diff options
context:
space:
mode:
Diffstat (limited to 'schemas_json')
-rw-r--r--schemas_json/logging.yaml123
1 files changed, 123 insertions, 0 deletions
diff --git a/schemas_json/logging.yaml b/schemas_json/logging.yaml
new file mode 100644
index 0000000..3c2bdfe
--- /dev/null
+++ b/schemas_json/logging.yaml
@@ -0,0 +1,123 @@
+---
+"$schema": "http://json-schema.org/schema#"
+id: "hatter://logging.yaml#"
+title: Logging
+description: Logging configuration
+type: object
+required:
+ - version
+properties:
+ version:
+ title: Version
+ type: integer
+ default: 1
+ formatters:
+ title: Formatters
+ type: object
+ patternProperties:
+ "(.)+":
+ title: Formatter
+ type: object
+ properties:
+ format:
+ title: Format
+ type: string
+ default: null
+ datefmt:
+ title: Date format
+ type: string
+ default: null
+ filters:
+ title: Filters
+ type: object
+ patternProperties:
+ "(.)+":
+ title: Filter
+ type: object
+ properties:
+ name:
+ title: Logger name
+ type: string
+ default: ''
+ handlers:
+ title: Handlers
+ type: object
+ patternProperties:
+ "(.)+":
+ title: Handler
+ type: object
+ description: |
+ Additional properties are passed as keyword arguments to
+ constructor
+ required:
+ - class
+ properties:
+ class:
+ title: Class
+ type: string
+ level:
+ title: Level
+ type: string
+ formatter:
+ title: Formatter
+ type: string
+ filters:
+ title: Filters
+ type: array
+ items:
+ title: Filter id
+ type: string
+ loggers:
+ title: Loggers
+ type: object
+ patternProperties:
+ "(.)+":
+ title: Logger
+ type: object
+ properties:
+ level:
+ title: Level
+ type: string
+ propagate:
+ title: Propagate
+ type: boolean
+ filters:
+ title: Filters
+ type: array
+ items:
+ title: Filter id
+ type: string
+ handlers:
+ title: Handlers
+ type: array
+ items:
+ title: Handler id
+ type: string
+ root:
+ title: Root logger
+ type: object
+ properties:
+ level:
+ title: Level
+ type: string
+ filters:
+ title: Filters
+ type: array
+ items:
+ title: Filter id
+ type: string
+ handlers:
+ title: Handlers
+ type: array
+ items:
+ title: Handler id
+ type: string
+ incremental:
+ title: Incremental configuration
+ type: boolean
+ default: false
+ disable_existing_loggers:
+ title: Disable existing loggers
+ type: boolean
+ default: true
+...