Last Log offers a convenient way to view the most recent file inside a folder of your choice.
It is possible to use the extension in 3 ways: from the button on the left side of the status bar, from the command line with the command "Open last log", or by creating a custom key binding.
This extension contributes the following settings:
The path containing the log files relative to the workspace folder. To navigate back outside the workspace add ..\ for each folder.
Specifies if the logs located in subfolders are to be considered (any depth level).
The file extension of the log files. If unset or set to '
' it will work on any file type. Default is 'log'.
Specifies a list of folders to be ignored (it only has effect if includeSubfolders is set to true).
Sets the maximum age (in minutes) of log files in the workspace. Files older than this limit will be deleted. If unset or set to 0 this functionality will be disabled, and no log files will be deleted from the folder.
If set to true, the files located inside excluded folders will be deleted according to the logRetentionTime setting. If unset or set to false, the excluded folders will be ignored and not deleted.
If set to true, any empty subfolder will be removed. If unset or set to false, empty folders will be ignored and not deleted.
Deletion actions will be triggered when opening a log file.