|
2 | 2 | "name": "magento-log-viewer", |
3 | 3 | "displayName": "Magento Log Viewer", |
4 | 4 | "description": "A Visual Studio Code extension to view and manage Magento log files.", |
5 | | - "version": "1.17.1", |
| 5 | + "version": "1.18.0", |
6 | 6 | "publisher": "MathiasElle", |
7 | 7 | "icon": "resources/logo.png", |
8 | 8 | "repository": { |
|
96 | 96 | "command": "magento-log-viewer.selectMagentoRootFromSettings", |
97 | 97 | "title": "Magento Log Viewer: Select Root Folder", |
98 | 98 | "category": "Magento Log Viewer" |
| 99 | + }, |
| 100 | + { |
| 101 | + "command": "magento-log-viewer.cleanupOldLogFiles", |
| 102 | + "title": "Clean Up Old Log Files", |
| 103 | + "icon": "$(clock)" |
| 104 | + }, |
| 105 | + { |
| 106 | + "command": "magento-log-viewer.togglePeriodicCleanup", |
| 107 | + "title": "Toggle Periodic Cleanup", |
| 108 | + "icon": "$(sync)" |
99 | 109 | } |
100 | 110 | ], |
101 | 111 | "configuration": { |
|
158 | 168 | "default": false, |
159 | 169 | "description": "Show cache statistics in developer console (useful for debugging performance)", |
160 | 170 | "scope": "resource" |
| 171 | + }, |
| 172 | + "magentoLogViewer.enableAutoCleanup": { |
| 173 | + "type": "boolean", |
| 174 | + "default": false, |
| 175 | + "description": "Automatically delete log files older than the specified time period", |
| 176 | + "scope": "resource" |
| 177 | + }, |
| 178 | + "magentoLogViewer.autoCleanupMaxAge": { |
| 179 | + "type": "string", |
| 180 | + "default": "30d", |
| 181 | + "pattern": "^\\d+(min|[hdwM])$", |
| 182 | + "patternErrorMessage": "Format: Number followed by min (minutes), h (hours), d (days), w (weeks), or M (months). Example: 30min, 2h, 7d, 2w, 3M", |
| 183 | + "markdownDescription": "Maximum age of log files before automatic deletion. Format: Number + unit (min=minutes, h=hours, d=days, w=weeks, M=months). Examples: `30min`, `2h`, `7d`, `2w`, `3M`", |
| 184 | + "scope": "resource" |
| 185 | + }, |
| 186 | + "magentoLogViewer.enablePeriodicCleanup": { |
| 187 | + "type": "boolean", |
| 188 | + "default": false, |
| 189 | + "description": "Enable periodic automatic cleanup that runs at regular intervals (like cron)", |
| 190 | + "scope": "resource" |
| 191 | + }, |
| 192 | + "magentoLogViewer.periodicCleanupInterval": { |
| 193 | + "type": "string", |
| 194 | + "default": "1h", |
| 195 | + "enum": ["5min", "10min", "15min", "30min", "1h", "2h", "6h", "12h", "24h"], |
| 196 | + "markdownDescription": "How often to run the periodic cleanup. Examples: `5min`, `30min`, `1h`, `6h`, `24h`", |
| 197 | + "scope": "resource" |
161 | 198 | } |
162 | 199 | } |
163 | 200 | }, |
|
265 | 302 | "when": "view == logFiles && magentoLogViewer.hasMagentoRoot", |
266 | 303 | "group": "navigation@5" |
267 | 304 | }, |
| 305 | + { |
| 306 | + "command": "magento-log-viewer.cleanupOldLogFiles", |
| 307 | + "when": "view == logFiles && magentoLogViewer.hasMagentoRoot", |
| 308 | + "group": "navigation@6" |
| 309 | + }, |
| 310 | + { |
| 311 | + "command": "magento-log-viewer.togglePeriodicCleanup", |
| 312 | + "when": "view == logFiles && magentoLogViewer.hasMagentoRoot", |
| 313 | + "group": "navigation@7" |
| 314 | + }, |
268 | 315 | { |
269 | 316 | "command": "magento-log-viewer.refreshReportFiles", |
270 | 317 | "when": "view == reportFiles && magentoLogViewer.hasMagentoRoot", |
|
0 commit comments