Log Analysis BetaHighlight your logs with colorful filters, and manipulate what to display for better log file reading. This helps you focus on log analysis and use your time efficiently. This extension is a fork of the Log Analysis project, created to introduce and test new features in advance or to implement upcoming requirements. The goal of this project is to eventually contribute these enhancements back to the original Log Analysis project for long-term integration. We encourage you to freely share any issues or suggestions for improvement you encounter while using this extension. Your feedback is valuable and helps us enhance the project. Features
UsageWe distinguish between Basic Users and Advanced Users to cater to different user needs and expertise levels. Basic Users focus on simple filter management for log analysis without needing to understand or interact with project features. In contrast, Advanced Users manage multiple projects and filter configurations to handle more complex log analysis scenarios. Basic UsersBasic users simply set up and manage filter groups to use for log analysis. The Primary SideBar ( Basic OperationThe basic operation for log analysis is as follows. For basic users, log analysis can be performed directly in the The left editor holds the original document, and all the lines that matches any of the filters have been highlighted. The right editor holds the focus mode of the left document, and notice that the lines which don't match any of the filters' regex are gone. The focus mode is implemented as a virtual document (read-only), and the original document is not modified. If there are lines in the filtered results that you want to exclude, you can add filters for this purpose in the Customization for filtersThis extension creates a tab GroupA group can contain multiple filters, and filters within a group can be controlled collectively. This allows you to group filters suitable for log analysis. For each group, there are two controls and three attributes:
FilterThe filled/unfilled circle represents the color of the filter and whether the highlight is applied to documents. The text represents the regex of the filter, and the number in a smaller font, if there is one, represents the number of lines that match the regex in the active editor. For each filter, there is one control and four attributes:
Exclusion FilterThis extension also creates a In this tab, you can add exclusion filters to remove unnecessary information from the focused filter results during log analysis. For exclusion filters, there are two controls and one attribute:
Filter Control
Filter Properties
Focus ModeYou can use Advanced UsersAdvanced users can leverage the project management features available. For these users, projects are used as containers for filter groups, allowing them to manage different log analyses across multiple projects. Unlike a physical folder structure, project in this extension represents a logical unit for organizing filter configurations based on platform, framework, or log analysis use cases. Since logs can be accessed independently of any specific workspace or folder, these projects enable users to centralize and consistently manage their filter settings, ensuring they can switch between different log analysis setups without confusion. This flexibility allows advanced users to efficiently manage various log types, such as development logs, QA issue logs, or platform-specific logs, within distinct projects. This extension also creates a In the All filters will initially be set to the disabled state when a project is selected and loaded. Clicking the refresh icon in the Handling Huge FilesIn VS Code, when opening files larger than 50MB, the use of extensions is restricted to ensure performance and memory efficiency. This limitation helps maintain a responsive and stable environment when handling large files. More details on this can be found in #31078. By using the extension below, you can enable extension functionality when opening large files, allowing for log analysis. It works well with to handle large log files. ContributingWe welcome contributions! If you would like to contribute, please refer to our Contributing Guidelines for more information on how to get involved. |