|
Variable | Default | Description |
---|---|---|
lastLog.folderPath |
logs |
The path to the log files relative to the workspace folder. To go up to the parent folder, add '..\' at the start of the path for each level you want to go up. |
lastLog.includeSubfolders |
true |
Specifies if logs in subfolders are to be included, with no limit on subfolder depth. |
lastLog.fileExtension |
log |
The file extension of the log files. Use '*' to match any file type. |
lastLog.excludeFolders |
[] |
An array of folder names to exclude when includeSubfolders is true. |
lastLog.logRetentionTime |
0 |
Sets the maximum age in minutes for log files in the workspace. Files older than this limit will be deleted. Set to 0 to disable this functionality and prevent deletion of log files. |
lastLog.deleteExcludedFolders |
false |
When true, log files inside excluded folders will be deleted based on the logRetentionTime setting. When false, excluded folders will be ignored and not deleted. |
lastLog.deleteEmptyFolders |
false |
When true, empty subfolders will be deleted. When false, empty subfolders will be ignored and not deleted. |
- Deletion actions will be triggered when opening a log file.
Example configuration
{
"lastLog.folderPath": "myLogsFolder",
"lastLog.includeSubfolders": true,
"lastLog.fileExtension": "txt",
"lastLog.excludeFolders": [
"nameFolder1", "nameFolder2"
],
"lastLog.logRetentionTime": 60,
"lastLog.deleteExcludedFolders": true,
"lastLog.deleteEmptyFolders": true
}
Credits
Main icon by @OllyLove
Enjoy!