Commit 1f28ea4
feat: Expand error log type mapping to include Exception and Assert
Per PR review feedback, expanded the log type mapping to handle multi-value
mappings. The "error" filter now returns all error-related log types.
We found that filtering by "error" was not comprehensive enough for
development purposes - Exception and Assert logs are also error conditions
that developers need to see.
Changes:
- Changed LogTypeMapping from Dictionary<string, string> to
Dictionary<string, HashSet<string>> to support 1-to-many mappings
- Added "error" → {"Error", "Exception", "Assert"} mapping
- Updated GetAllLogsAsJson filtering logic to use HashSet.Contains()
This ensures developers can see all error-related logs when filtering
by "error" type, making debugging more effective.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 1ecfd45 commit 1f28ea4
1 file changed
+18
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
| 17 | + | |
17 | 18 | | |
18 | | - | |
| 19 | + | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| |||
83 | 85 | | |
84 | 86 | | |
85 | 87 | | |
86 | | - | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
87 | 101 | | |
88 | 102 | | |
89 | 103 | | |
90 | 104 | | |
91 | 105 | | |
92 | | - | |
| 106 | + | |
93 | 107 | | |
94 | 108 | | |
95 | 109 | | |
| |||
0 commit comments