logviewer 2.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +7 -5
- data/lib/logviewer/version.rb +1 -1
- data/lib/logviewer.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fac69fee4a6d38227b055f96c78477b9baa3a40cceef07a291b59b184dce88b6
|
4
|
+
data.tar.gz: 9c4dac6e68e9dad2753d9300a601e7582e4827f17fb35aeccbf231c1c235aa2b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bbb6b8f5cbbf1ec4bb61a33dc342e71eb4833c0f9a058d1f5bedc63a7f4d1c7cdf298967dc98b96054d69347af7307a92d957a7167c8dad1ca57fcd7cbe859ee
|
7
|
+
data.tar.gz: 8ac8b3b96a0aaf5bd2a418b014275cd1405402656891cfc1d4f74aa816356d6974e89bc6a381d10077a115b44c5d26b6af15368e62f7f5d6be53a804882aa9ba
|
data/README.md
CHANGED
@@ -37,10 +37,10 @@ logviewer
|
|
37
37
|
```
|
38
38
|
|
39
39
|
This will:
|
40
|
-
1. Parse the NDJSON file
|
41
|
-
2. Include all log levels (
|
40
|
+
1. Parse the NDJSON file
|
41
|
+
2. Include all log levels (trace and above by default)
|
42
42
|
3. Generate an HTML file in `/tmp/`
|
43
|
-
4. Open the HTML file in your default browser
|
43
|
+
4. Open the HTML file in your default browser (initially filtered to debug+)
|
44
44
|
|
45
45
|
### Filter by Log Level
|
46
46
|
|
@@ -48,7 +48,7 @@ This will:
|
|
48
48
|
logviewer --level info example.ndjson
|
49
49
|
```
|
50
50
|
|
51
|
-
Only includes log entries with level "info" and above in the HTML file. You can then use the interactive dropdown in the browser to filter
|
51
|
+
Only includes log entries with level "info" and above in the HTML file. You can then use the interactive dropdown in the browser to filter within those entries.
|
52
52
|
|
53
53
|
### Auto-Detection of Log Files
|
54
54
|
|
@@ -124,7 +124,9 @@ Once the HTML file opens in your browser, you can:
|
|
124
124
|
- Use the dropdown in the header to dynamically filter log entries by minimum level
|
125
125
|
- Filter changes are applied instantly without page reload
|
126
126
|
- Entry counts update automatically to show how many entries match the current filter
|
127
|
-
- Command line level
|
127
|
+
- Command line level controls what entries are included in the HTML file
|
128
|
+
- Browser initially shows debug+ level by default, regardless of command line level
|
129
|
+
- Browser filtering works within the entries included from the command line
|
128
130
|
|
129
131
|
## Development
|
130
132
|
|
data/lib/logviewer/version.rb
CHANGED
data/lib/logviewer.rb
CHANGED
@@ -18,7 +18,7 @@ module LogViewer
|
|
18
18
|
|
19
19
|
def initialize(args = ARGV)
|
20
20
|
@args = args
|
21
|
-
@min_level = '
|
21
|
+
@min_level = 'trace'
|
22
22
|
@input_file = nil
|
23
23
|
end
|
24
24
|
|
@@ -343,8 +343,8 @@ module LogViewer
|
|
343
343
|
const levelFilter = document.getElementById('levelFilter');
|
344
344
|
const tableRows = document.querySelectorAll('tbody tr');
|
345
345
|
|
346
|
-
// Set initial filter to
|
347
|
-
levelFilter.value = '
|
346
|
+
// Set initial filter to debug (default UI filter)
|
347
|
+
levelFilter.value = 'debug';
|
348
348
|
|
349
349
|
function filterByLevel() {
|
350
350
|
const selectedLevel = levelFilter.value;
|