Settings
Customizing Color Scheme
Syntax highlighting Color Scheme of files opened with .log plugin can be customized to match any personal preferences. To set custom colors/styles for log file elements (i.e. timestamps, log levels, message constructs):
- Open the Color Scheme Settings:
- Navigate to Settings > Editor > Color Scheme > File Types.
- Select Log Files from the list of file types.
- Adjust Specific Colors for Log Elements:
- In the Logs color scheme settings, you’ll see options for various log elements such as:
- Log Levels (e.g., INFO, WARN, ERROR)
- Timestamps, Category, Context id…
- ANSI Color Codes (foreground & background color only)
- For each element foreground, background and font style (bold, italic, underline) can be customized. For ANSI codes only foreground and background colors are relevant.
- Click Apply and OK to save your changes. Changes will apply immediately.
- In the Logs color scheme settings, you’ll see options for various log elements such as:
File Type Association
By default, .log plugin configured to support log file name patterns: *.log;*.err;*.out;*.log.txt
.
To associate additional log file name patterns, to be viewed by .log plugin, update File Type Settings:
- Find Action dialog (
⌘+⇧+A | Ctrl+⇧+A
) → Search: File Types (or alternatively, Settings (⌘+, | Ctrl+Alt+S
) → File Types) - Under Recognized File Types → Logs → add file name patterns
Supported File Size
To ensure responsive performance, JetBrains sets a file size limitation. Since viewing log files typically consumes less resources then code source files, this limitation can be extended without significant performance impact.
- File Size Limitation: If a log file exceeds the default 20 MB limitation, it will not be supported and a notification will appear at the top of the editor.
- Increase File Size Limit:
- Go to Help > Edit Custom Properties… to open the
idea.properties
file. - Set/Add the property
idea.max.content.load.filesize
to a higher value. - Restart the IDE for the changes to take effect.
- Example idea.properties:
#--------------------------------------------------------------------- # Maximum file size (in KiB) the IDE is able to open. #--------------------------------------------------------------------- # defaults to 20MB (for IDEA 2024.2) #idea.max.content.load.filesize=20000 # For example extend to 100MB idea.max.content.load.filesize=100000
- Go to Help > Edit Custom Properties… to open the
Note: Currently, due to performance concerns, max supported file size is limited to 100MB. larger files will be opened without syntax highlighting and navigation features provided by.log plugin. we’re working to improve performance and remove or extend this limitation.
Note: If performance issues encountered, please report the details including file size, typical log line length, typical log snippet and preferably also host CPU/memory specs