18declare(strict_types=1);
22 $this->
log(LogLevel::EMERGENCY, $message);
25 public function alert($message){
26 $this->
log(LogLevel::ALERT, $message);
30 $this->
log(LogLevel::CRITICAL, $message);
33 public function error($message){
34 $this->
log(LogLevel::ERROR, $message);
38 $this->
log(LogLevel::WARNING, $message);
42 $this->
log(LogLevel::NOTICE, $message);
45 public function info($message){
46 $this->
log(LogLevel::INFO, $message);
49 public function debug($message){
50 $this->
log(LogLevel::DEBUG, $message);
53 public function log($level, $message){
54 echo
"[" . strtoupper($level) .
"] " . $message . PHP_EOL;
59 echo $e->getTraceAsString();
logException(\Throwable $e, $trace=null)