45 lines
705 B
PHP
45 lines
705 B
PHP
<?php
|
|
|
|
namespace services\utils;
|
|
|
|
use Exception;
|
|
use Log;
|
|
use utils\services\ILogService;
|
|
|
|
/**
|
|
* Class LogService
|
|
* @package services\utils
|
|
*/
|
|
final class LogService implements ILogService
|
|
{
|
|
|
|
public function error(Exception $exception)
|
|
{
|
|
Log::error($exception);
|
|
}
|
|
|
|
public function warning(Exception $exception)
|
|
{
|
|
Log::warning($exception);
|
|
}
|
|
|
|
public function info(Exception $exception)
|
|
{
|
|
Log::info($exception);
|
|
}
|
|
|
|
public function warning_msg($msg)
|
|
{
|
|
Log::warning($msg);
|
|
}
|
|
|
|
public function error_msg($msg)
|
|
{
|
|
Log::error($msg);
|
|
}
|
|
|
|
public function debug_msg($msg)
|
|
{
|
|
Log::debug($msg);
|
|
}
|
|
} |