File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
bundles/org.openhab.ui/web/src/pages/developer Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 227
227
td .sticky
228
228
position sticky
229
229
left 0
230
+ width 105px
230
231
color black
231
232
background #f1 f1 f1
232
233
z-index 1
233
234
235
+ td .level
236
+ width 50px
237
+
238
+ td .logger
239
+ width 280px
240
+
234
241
tr .table-rows
235
242
height 31px
236
243
@@ -335,6 +342,7 @@ export default {
335
342
batchLogs: [],
336
343
nextId: 0 ,
337
344
maxEntries: 2000 ,
345
+ maxLoggerNameLength: 40 ,
338
346
logStart: ' --:--:--' ,
339
347
logEnd: ' --:--:--' ,
340
348
currentHighlightColorItemIndex: null ,
@@ -449,9 +457,11 @@ export default {
449
457
renderEntry (entity ) {
450
458
let tr = document .createElement (' tr' )
451
459
tr .className = ' table-rows ' + entity .level .toLowerCase ()
460
+ let loggerName = entity .loggerName
461
+ if (loggerName .length > this .maxLoggerNameLength ) loggerName = loggerName .substring (loggerName .length - this .maxLoggerNameLength )
452
462
tr .innerHTML = ` <td class="sticky">${entity .time }<span class="milliseconds">${entity .milliseconds }</span></td> ` +
453
- ` <td>${entity .level }</td> ` +
454
- ` <td>${entity . loggerName }</td> ` +
463
+ ` <td class="level" >${entity .level }</td> ` +
464
+ ` <td class="logger" >${loggerName }</td> ` +
455
465
` <td class="nowrap">${this .highlightText (entity .message )}</td> `
456
466
return tr
457
467
},
You can’t perform that action at this time.
0 commit comments