diff --git a/bundles/org.openhab.ui/web/src/pages/developer/log-viewer.vue b/bundles/org.openhab.ui/web/src/pages/developer/log-viewer.vue index b3c98292fe..bb44d83dad 100644 --- a/bundles/org.openhab.ui/web/src/pages/developer/log-viewer.vue +++ b/bundles/org.openhab.ui/web/src/pages/developer/log-viewer.vue @@ -125,10 +125,8 @@ :class="{ 'disabled-link': !stateConnected || !stateProcessing, 'no-margin-left': $device.ios }" @click="loggingPause" /> + :icon-color="!stateConnected ? 'gray' : ''" :tooltip="!$device.ios ? 'Stop receiving logs' : ''" + :class="{ 'disabled-link': !stateConnected, 'no-margin-left': $device.ios }" @click="loggingStop" /> @@ -158,8 +156,8 @@ :class="{ 'disabled-link': filterCount == 0 }" @click="downloadCSV" /> - + @@ -230,6 +228,8 @@ color black background #f1f1f1 z-index 1 + white-space nowrap + overflow hidden tr.table-rows height 31px @@ -449,7 +449,25 @@ export default { renderEntry (entity) { let tr = document.createElement('tr') tr.className = 'table-rows ' + entity.level.toLowerCase() - tr.innerHTML = `${entity.time}${entity.milliseconds}` + + let icon = 'question_diamond' + switch (entity.level) { + case 'TRACE': + icon = 'line_horizontal_3' + break + case 'DEBUG': + icon = 'ant' + break + case 'INFO': + icon = 'info_circle' + break + case 'WARN': + icon = 'flag' + break + case 'ERROR': + icon = 'exclamationmark_octagon_fill' + break + } + tr.innerHTML = '' + icon + ` ${entity.time}${entity.milliseconds}` + `${entity.level}` + `${entity.loggerName}` + `${this.highlightText(entity.message)}`