From 794f5e9ee1b5d19821584528af89ce84ad828cac Mon Sep 17 00:00:00 2001 From: jimtng <2554958+jimtng@users.noreply.github.com> Date: Fri, 16 May 2025 19:49:43 +1000 Subject: [PATCH] Log Viewer: Add text mode option (#3177) - Add an option to display the log in "Text mode" vs "Table mode". - In Text Mode, the "Copy" button will copy the log as plain text. In Table Mode, the "Copy" button does what it used to do before. - Hovering the mouse pointer over the log name reveals the full name - Clicking on the log line still brings up the detail dialog - You can select the text, and copy / paste it into a text file --------- Signed-off-by: Jimmy Tanagra --- .../web/src/pages/developer/log-viewer.vue | 81 +++++++++++++++++-- 1 file changed, 76 insertions(+), 5 deletions(-) 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 f0c0774d8..b41f1569c 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 @@ -222,6 +222,10 @@ + + + + @@ -330,6 +334,38 @@ tr.trace color rgb(112, 112, 112) + td.text + font-family monospace + font-size 0.9em + padding-left 4em + line-height 1.2em + color grey + span + margin-right 5px + .time + margin-left -3.2em + .level + width 3em + display inline-block + margin-right 0 + .logger + width 20em + display inline-block + vertical-align middle + margin-right 0 + .msg + font-weight bold + .error + color red + .warn + color orange + .info + color green + .debug + color teal + .trace + color teal + .disabled-link pointer-events none opacity 0.5 @@ -398,6 +434,11 @@