FRED™
3.0
FRED™: Framework for Rapid and Easy Development
Console.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Rsi\Fred\Log\Handler
;
4
5
class
Console
extends
\Rsi\Fred\Log\Handler{
6
7
public
$date
= null;
8
9
public
function
add
($prio,$message,$context){
10
if
((
$date
= date(
'Y-m-d'
)) != $this->date){
11
print(
"------------------------- $date -------------------------\n"
);
12
$this->date =
$date
;
13
}
14
print(date(
'H:i:s'
) .
" [$prio] $message\n"
);
15
if
(($prio >= \
Rsi
\
Fred
\
Log::ERROR
) && ($filename = $context[
'filename'
] ?? null))
16
print(
" $filename"
. (($line_no = $context[
'lineNo'
] ?? null) ?
":$line_no"
:
''
) .
"\n"
);
17
}
18
19
}
Rsi\Fred\Log\ERROR
const ERROR
Error conditions.
Definition:
Log.php:11
Rsi\Fred\Log\Handler
Definition:
Console.php:3
Rsi\Fred
Framework for Rapid and Easy Development.
Definition:
Fred.php:18
Rsi\Fred\Log\Handler\Console\$date
$date
Definition:
Console.php:7
Rsi
Rsi\Fred\Log\Handler\Console
Definition:
Console.php:5
Rsi\Fred\Log\Handler\Console\add
add($prio, $message, $context)
Definition:
Console.php:9
src
Rsi
Fred
Log
Handler
Console.php
Generated on Sun Aug 2 2020 19:43:57 for FRED™ by
1.8.13