summaryrefslogtreecommitdiff
path: root/schemas
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2022-04-05 20:51:50 +0200
committerValery Piashchynski <[email protected]>2022-04-05 20:51:50 +0200
commit7834636158f26aaa7e8f61d585fc2d7b9392fbc3 (patch)
tree7be44246dd78e1310335e2d0f2947afc152a05fe /schemas
parent08b74400f5ebd75bd33af12c645a38fb38b73c79 (diff)
config: add file logger options to the `.rr.yaml` and schema2.0.json
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'schemas')
-rw-r--r--schemas/config/2.0.schema.json26
1 files changed, 26 insertions, 0 deletions
diff --git a/schemas/config/2.0.schema.json b/schemas/config/2.0.schema.json
index 344f77a4..9a444c7d 100644
--- a/schemas/config/2.0.schema.json
+++ b/schemas/config/2.0.schema.json
@@ -168,6 +168,32 @@
}
}
}
+ },
+ "file_logger_options": {
+ "description": "file logger options",
+ "type": "object",
+ "properties": {
+ "log_output": {
+ "type": "string",
+ "description": "path to the file"
+ },
+ "max_size": {
+ "type": "integer",
+ "description": "maximum file size in MB"
+ },
+ "max_age": {
+ "type": "integer",
+ "description": "The maximum number of days to retain old log files based on the timestamp encoded in their filename"
+ },
+ "max_backups" : {
+ "type": "integer",
+ "description": "The maximum number of old log files to retain"
+ },
+ "compress" : {
+ "type": "boolean",
+ "description": "compress files to save a disk space"
+ }
+ }
}
}
},