From bf278adb15f8088bba0e5d8bc30c966f35747ad7 Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Thu, 9 May 2024 10:27:25 +0200 Subject: [PATCH 1/4] admin panel - colorize error levels With this patch the error levels shown in the Admin Panel -> Log view are coloured according to severity. Starting from green for debug, over orange for notices to bold red for errors and criticals. --- view/global.css | 24 ++++++++++++++++++++++++ view/templates/admin/logs/view.tpl | 2 +- 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/view/global.css b/view/global.css index aab6e8d67d..9dbca10963 100644 --- a/view/global.css +++ b/view/global.css @@ -749,3 +749,27 @@ figure.img-allocated-height img{ width: 48px; height: 48px; } + +/** + * Log levels colorized in the admin panel + **/ +.loglevel-debug { + color: #00ff00; /* green */ +} +.loglevel-info { + color: #013220; /* dark green */ +} +.loglevel-notice { + color: #ffa500; /* orange */ +} +.loglevel-warning { + color: #ff8c00; /* dark orange */ +} +.loglevel-error { + color: #ff0000; /* red */ + font-weight: bold; +} +.loglevel-critical { + color: #8b0000; /* dark red */ + font-weight: bold; +} diff --git a/view/templates/admin/logs/view.tpl b/view/templates/admin/logs/view.tpl index 50e166f1ba..719299ad9b 100644 --- a/view/templates/admin/logs/view.tpl +++ b/view/templates/admin/logs/view.tpl @@ -50,7 +50,7 @@ style="cursor:pointer;" title="{{$l10n.Click_to_view_details}}"> {{$row->date}} - {{$row->level}} + {{$row->level}} {{$row->context}} {{$row->message}} From 63a753662447700add47ad00fc03af3d7ad05774 Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Thu, 9 May 2024 10:33:51 +0200 Subject: [PATCH 2/4] remove whitespaces --- view/global.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/view/global.css b/view/global.css index 9dbca10963..2f23de9fba 100644 --- a/view/global.css +++ b/view/global.css @@ -767,9 +767,9 @@ figure.img-allocated-height img{ } .loglevel-error { color: #ff0000; /* red */ - font-weight: bold; + font-weight: bold; } .loglevel-critical { color: #8b0000; /* dark red */ - font-weight: bold; + font-weight: bold; } From aeb13820394e1b6cba87414be30c2c4059fbcf4e Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Thu, 9 May 2024 11:45:30 +0200 Subject: [PATCH 3/4] make warnings bold as well now the three most severe levels are bold, while the three less severe levels have a normal font weight --- view/global.css | 1 + 1 file changed, 1 insertion(+) diff --git a/view/global.css b/view/global.css index 2f23de9fba..b17de54b34 100644 --- a/view/global.css +++ b/view/global.css @@ -764,6 +764,7 @@ figure.img-allocated-height img{ } .loglevel-warning { color: #ff8c00; /* dark orange */ + font-weight: bold; } .loglevel-error { color: #ff0000; /* red */ From 38e082949d947f240844588ca956cf2783f2cbb7 Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Fri, 10 May 2024 06:34:29 +0200 Subject: [PATCH 4/4] adopt colors --- view/global.css | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/view/global.css b/view/global.css index b17de54b34..74ef4631de 100644 --- a/view/global.css +++ b/view/global.css @@ -754,16 +754,15 @@ figure.img-allocated-height img{ * Log levels colorized in the admin panel **/ .loglevel-debug { - color: #00ff00; /* green */ } .loglevel-info { - color: #013220; /* dark green */ + color: #0f009f; /* blue */ } .loglevel-notice { - color: #ffa500; /* orange */ + color: #007e01; /* green */ } .loglevel-warning { - color: #ff8c00; /* dark orange */ + color: #de9600; /* dark orange */ font-weight: bold; } .loglevel-error { @@ -771,6 +770,6 @@ figure.img-allocated-height img{ font-weight: bold; } .loglevel-critical { - color: #8b0000; /* dark red */ + color: #731289; /* purple */ font-weight: bold; }