Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 9 |
CRAP | |
0.00% |
0 / 27 |
EchoLogger | |
0.00% |
0 / 1 |
|
0.00% |
0 / 9 |
90 | |
0.00% |
0 / 27 |
emergency | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 3 |
|||
alert | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 3 |
|||
critical | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 3 |
|||
error | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 3 |
|||
warning | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 3 |
|||
notice | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 3 |
|||
info | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 3 |
|||
debug | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 3 |
|||
log | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 3 |
<?php | |
declare(strict_types = 1); | |
namespace Siesta\Logger; | |
use Psr\Log\LoggerInterface; | |
/** | |
* @author Gregor Müller | |
*/ | |
class EchoLogger implements LoggerInterface | |
{ | |
public function emergency($message, array $context = array()) | |
{ | |
echo "[emergency] " . $message . PHP_EOL; | |
} | |
public function alert($message, array $context = array()) | |
{ | |
echo "[alert] " . $message . PHP_EOL; | |
} | |
public function critical($message, array $context = array()) | |
{ | |
echo "[critical] " . $message . PHP_EOL; | |
} | |
public function error($message, array $context = array()) | |
{ | |
echo "[error] " . $message . PHP_EOL; | |
} | |
public function warning($message, array $context = array()) | |
{ | |
echo "[warning] " . $message . PHP_EOL; | |
} | |
public function notice($message, array $context = array()) | |
{ | |
echo "[notice] " . $message . PHP_EOL; | |
} | |
public function info($message, array $context = array()) | |
{ | |
echo "[info] " . $message . PHP_EOL; | |
} | |
public function debug($message, array $context = array()) | |
{ | |
echo "[debug] " . $message . PHP_EOL; | |
} | |
public function log($level, $message, array $context = array()) | |
{ | |
echo "[$level] " . $message . PHP_EOL; | |
} | |
} |