logviewer 1.6.1 → 1.7.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: 1b9106af1e9941238180f211dbbc156e1a0399bf5cca0e3f19923e4c7e6ad5d1
4
- data.tar.gz: e6af770c419e32950450d7d65d85f43c1f85146d0a76c31615a4a2ed4ddd562b
3
+ metadata.gz: c2e1bf52a01e4f5ef4cb8459d5cb0b7951a03b6ac78751b5b0338e132ff28e7f
4
+ data.tar.gz: dbaa77c1b51d5f25169cb23a0d84bc5e0a685494c46f6388ed59d8c142e9e5e2
5
5
  SHA512:
6
- metadata.gz: cc4e7bfb85ab4faa538250ac7eefde469ee1356c62bb320abfbb43416cc34821c7a586dd2ada1d0a4dfda2c034f8eb09702635b98ef2f6a891444154c1feba3c
7
- data.tar.gz: e40ae9a7947dfa360abea65221a691990d893790ba58e572b7e78ecf7cf62060e524a5f7b92f71058e6767445313bd368b679c8ac9e3ea937927f91d894e7bf2
6
+ metadata.gz: 35bed00c8c9b38854f8850156fd0a2a74b3f9e22b08c27fbcce0ccf830e55453a462f04f5eab630624df7aeaec7ab4f67bd3c0421925395f931f710fec3152a4
7
+ data.tar.gz: 8f16831c8b0fdc9bc5d1b927f2ef1d54d96d620e800330a1d9b3fc5192eed47a0a8c3b9b8c4bd5781f4d817d5c517aec8d4112f0f6fabd38cc8b9c3825f4556e
data/README.md CHANGED
@@ -12,6 +12,7 @@ A Ruby gem that converts NDJSON log files into a readable HTML format for easy v
12
12
  - Color-coded log levels for easy identification
13
13
  - Large, readable fonts throughout the interface (18px base size)
14
14
  - Interactive dynamic filtering by log level in the browser
15
+ - Dark mode interface with optimized colors for comfortable viewing
15
16
  - Responsive design that works well in any browser
16
17
  - Automatically opens the generated HTML file in your default browser
17
18
 
@@ -106,8 +107,9 @@ The generated HTML file will be saved in `/tmp/` with a timestamp and automatica
106
107
 
107
108
  - A wide, responsive table layout (1800px max width) with columns in order: date, level, tag, file, function, text
108
109
  - Interactive log level filtering dropdown for dynamic filtering in the browser
110
+ - Dark mode theme with comfortable dark backgrounds and light text
109
111
  - Human-readable timestamps (MM/DD HH:MM:SS format)
110
- - Color-coded log levels
112
+ - Color-coded log levels optimized for dark backgrounds
111
113
  - Sticky header for easy navigation
112
114
  - Hover effects for better readability
113
115
  - Large fonts (18px base size) for excellent readability
@@ -1,3 +1,3 @@
1
1
  module LogViewer
2
- VERSION = "1.6.1"
2
+ VERSION = "1.7.0"
3
3
  end
data/lib/logviewer.rb CHANGED
@@ -106,19 +106,19 @@ module LogViewer
106
106
  def level_color(level)
107
107
  case level.downcase
108
108
  when 'trace'
109
- '#6c757d'
109
+ '#adb5bd'
110
110
  when 'debug'
111
- '#6c757d'
111
+ '#adb5bd'
112
112
  when 'info'
113
- '#0d6efd'
113
+ '#6ea8fe'
114
114
  when 'warning'
115
- '#fd7e14'
115
+ '#fd9843'
116
116
  when 'error'
117
- '#dc3545'
117
+ '#ea868f'
118
118
  when 'fatal'
119
- '#6f42c1'
119
+ '#c29ffa'
120
120
  else
121
- '#000000'
121
+ '#e0e0e0'
122
122
  end
123
123
  end
124
124
 
@@ -151,19 +151,20 @@ module LogViewer
151
151
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
152
152
  margin: 0;
153
153
  padding: 20px;
154
- background-color: #f8f9fa;
154
+ background-color: #1a1a1a;
155
+ color: #e0e0e0;
155
156
  }
156
157
  .container {
157
158
  max-width: 1800px;
158
159
  margin: 0 auto;
159
- background: white;
160
+ background: #2d2d2d;
160
161
  border-radius: 8px;
161
- box-shadow: 0 2px 10px rgba(0,0,0,0.1);
162
+ box-shadow: 0 2px 10px rgba(0,0,0,0.3);
162
163
  overflow: hidden;
163
164
  }
164
165
  .header {
165
- background: #343a40;
166
- color: white;
166
+ background: #1e1e1e;
167
+ color: #f0f0f0;
167
168
  padding: 20px;
168
169
  text-align: center;
169
170
  }
@@ -185,21 +186,23 @@ module LogViewer
185
186
  table-layout: fixed;
186
187
  }
187
188
  th {
188
- background: #e9ecef;
189
+ background: #3a3a3a;
190
+ color: #f0f0f0;
189
191
  padding: 18px;
190
192
  text-align: left;
191
193
  font-weight: 600;
192
- border-bottom: 2px solid #dee2e6;
194
+ border-bottom: 2px solid #555555;
193
195
  position: sticky;
194
196
  top: 0;
195
197
  }
196
198
  td {
197
199
  padding: 15px 18px;
198
- border-bottom: 1px solid #dee2e6;
200
+ border-bottom: 1px solid #404040;
199
201
  vertical-align: top;
202
+ color: #e0e0e0;
200
203
  }
201
204
  tr:hover {
202
- background-color: #f8f9fa;
205
+ background-color: #3a3a3a;
203
206
  }
204
207
  .level {
205
208
  font-weight: bold;
@@ -215,14 +218,14 @@ module LogViewer
215
218
  .file {
216
219
  font-family: 'Monaco', 'Menlo', monospace;
217
220
  font-size: 16px;
218
- color: #666;
221
+ color: #b0b0b0;
219
222
  max-width: 200px;
220
223
  word-wrap: break-word;
221
224
  }
222
225
  .method {
223
226
  font-family: 'Monaco', 'Menlo', monospace;
224
227
  font-size: 16px;
225
- color: #333;
228
+ color: #d0d0d0;
226
229
  font-weight: 500;
227
230
  max-width: 300px;
228
231
  word-wrap: break-word;
@@ -231,18 +234,18 @@ module LogViewer
231
234
  .timestamp {
232
235
  font-family: 'Monaco', 'Menlo', monospace;
233
236
  font-size: 15px;
234
- color: #666;
237
+ color: #b0b0b0;
235
238
  white-space: nowrap;
236
239
  }
237
240
  .tag {
238
241
  font-family: 'Monaco', 'Menlo', monospace;
239
242
  font-size: 16px;
240
- color: #007acc;
243
+ color: #5dade2;
241
244
  font-weight: 500;
242
245
  }
243
246
 
244
247
  .empty {
245
- color: #999;
248
+ color: #777;
246
249
  font-style: italic;
247
250
  }
248
251
  </style>
@@ -254,7 +257,7 @@ module LogViewer
254
257
  <p>#{File.basename(@input_file)} • #{logs.length} entries • Level: #{@min_level.upcase}+</p>
255
258
  <div style="margin-top: 15px;">
256
259
  <label for="levelFilter" style="color: white; margin-right: 10px;">Filter by level:</label>
257
- <select id="levelFilter" style="padding: 5px; font-size: 14px; border-radius: 4px; border: none;">
260
+ <select id="levelFilter" style="padding: 5px; font-size: 14px; border-radius: 4px; border: none; background-color: #3a3a3a; color: #f0f0f0;">
258
261
  HTML
259
262
 
260
263
  # Generate dropdown options only for levels >= command line minimum
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: 1.6.1
4
+ version: 1.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Bishop