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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c8522ad4cc90d0a8bd8931c4aac6480ee292f1cc42aeb763bbbeb1663b2114ce
4
- data.tar.gz: 685d0be973a04e95385374eb71d393c27d67668a9d9e52d765a602bc1567980f
3
+ metadata.gz: fac69fee4a6d38227b055f96c78477b9baa3a40cceef07a291b59b184dce88b6
4
+ data.tar.gz: 9c4dac6e68e9dad2753d9300a601e7582e4827f17fb35aeccbf231c1c235aa2b
5
5
  SHA512:
6
- metadata.gz: e699cbe1bacb51d20ee6fbf57716d51353adcba3d61e13e7f0d1178d46f7a9ef108e5cf3a9bab1c80e195b3930978a5ac4db4ef634e2c1442e639bf0d2ea509a
7
- data.tar.gz: d7d0e1b67f50707209cb74fe14d4f3ae542c11e3ec49fa7a743554c3c4f81288b7719e0ac342589c6686edb1d2b19251de95e30e9173eb0336c3475c2b34ea16
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 (or auto-detect the most recent .ndjson file in current directory)
41
- 2. Include all log levels (debug and above)
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 further.
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 acts as the initial data set - browser filtering works within those entries
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
 
@@ -1,3 +1,3 @@
1
1
  module LogViewer
2
- VERSION = "2.0.0"
2
+ VERSION = "2.1.0"
3
3
  end
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 = 'debug'
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 match command line parameter
347
- levelFilter.value = '#{@min_level}';
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;
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logviewer
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Bishop