Skip to content

Commit 6e5ff7b

Browse files
committed
Update settings schema
1 parent 83f8a5f commit 6e5ff7b

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

schemas/JSON/settings/settings.schema.0.2.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,35 @@
8080
},
8181
"minItems": 0,
8282
"maxItems": 20
83+
},
84+
"file": {
85+
"description": "The file settings control the log files generated by winget during operation.",
86+
"type": "object",
87+
"properties": {
88+
"ageLimitInDays": {
89+
"description": "The maximum age, in days, of a log file before it is deleted. Set to 0 to disable automatic deletion based on age.",
90+
"type": "integer",
91+
"default": 7,
92+
"minimum": 0
93+
},
94+
"totalSizeLimitInMB": {
95+
"description": "The maximum total size, in megabytes, of all log files. If the total size exceeds this limit, the oldest files will be deleted first. Set to 0 to disable this limit.",
96+
"type": "integer",
97+
"default": 128,
98+
"minimum": 0
99+
},
100+
"countLimit": {
101+
"description": "The maximum number of log files to retain. If the number of log files exceeds this limit, the oldest files will be deleted first. Set to 0 (the default) to disable this limit.",
102+
"type": "integer",
103+
"default": 0,
104+
"minimum": 0
105+
},
106+
"individualSizeLimitInMB": {
107+
"description": "The maximum size, in megabytes, of an individual log file. If a file would exceed this limit, new log lines will overwrite the file from the beginning. Set to 0 to disable this limit.",
108+
"type": "integer",
109+
"default": 16,
110+
"minimum": 0
111+
}
83112
}
84113
}
85114
},

0 commit comments

Comments
 (0)