Merge pull request #14135 from tobiasd/colorize-loglevels

Colorize loglevels
This commit is contained in:
Hypolite Petovan 2024-05-10 10:59:05 -04:00 committed by GitHub
commit 9dc0e5393e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 25 additions and 1 deletions

View file

@ -749,3 +749,27 @@ figure.img-allocated-height img{
width: 48px;
height: 48px;
}
/**
* Log levels colorized in the admin panel
**/
.loglevel-debug {
}
.loglevel-info {
color: #0f009f; /* blue */
}
.loglevel-notice {
color: #007e01; /* green */
}
.loglevel-warning {
color: #de9600; /* dark orange */
font-weight: bold;
}
.loglevel-error {
color: #ff0000; /* red */
font-weight: bold;
}
.loglevel-critical {
color: #731289; /* purple */
font-weight: bold;
}

View file

@ -50,7 +50,7 @@
style="cursor:pointer;"
title="{{$l10n.Click_to_view_details}}">
<td>{{$row->date}}</td>
<td>{{$row->level}}</td>
<td class="loglevel-{{$row->level|lower}}">{{$row->level}}</td>
<td>{{$row->context}}</td>
<td>{{$row->message}}</td>
</tr>