Ubiquity
2.5.2
php rapid development framework
Loading...
Searching...
No Matches
HtmlLogFormatter.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Ubiquity\log
;
4
5
class
HtmlLogFormatter
{
6
private
static
$icons
=[100=>
""
,200=>
"blue info circle"
,300=>
"orange warning circle"
,400=>
"exclamation triangle"
,500=>
"thumbs down outline"
,550=>
"thumbs down"
,600=>
"ban"
];
7
private
static
$format
=[100=>
""
,200=>
"info"
,300=>
"warning"
,400=>
"error"
,500=>
"error"
,550=>
"error"
,600=>
"error"
];
8
9
public
static
function
getIcon
(
LogMessage
$message){
10
return
self::$icons[$message->
getLevel
()];
11
}
12
13
public
static
function
getFormat
(
LogMessage
$message){
14
return
self::$format[$message->
getLevel
()];
15
}
16
}
Ubiquity\log\HtmlLogFormatter
Definition
HtmlLogFormatter.php:5
Ubiquity\log\HtmlLogFormatter\$format
static $format
Definition
HtmlLogFormatter.php:7
Ubiquity\log\HtmlLogFormatter\getIcon
static getIcon(LogMessage $message)
Definition
HtmlLogFormatter.php:9
Ubiquity\log\HtmlLogFormatter\getFormat
static getFormat(LogMessage $message)
Definition
HtmlLogFormatter.php:13
Ubiquity\log\HtmlLogFormatter\$icons
static $icons
Definition
HtmlLogFormatter.php:6
Ubiquity\log\LogMessage
Definition
LogMessage.php:5
Ubiquity\log\LogMessage\getLevel
getLevel()
Definition
LogMessage.php:47
Ubiquity\log
Definition
HtmlLogFormatter.php:3
C:
Users
myadd
Documents
GitHub
ubiquity-doc-api
vendor
phpmv
ubiquity
src
Ubiquity
log
HtmlLogFormatter.php
Generated on Sun Dec 10 2023 15:04:22 for
Ubiquity
by
doxygen
1.9.8