qqq
This commit is contained in:
@@ -171,7 +171,7 @@ class Logger implements LoggerInterface
|
|||||||
if (!in_array($level, $this->levels)) {
|
if (!in_array($level, $this->levels)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$_string = "[" . now() . ']' . ucfirst($level) . ": " . $message;
|
$_string = "[" . now() . ']: ' . $message;
|
||||||
if (!empty($context)) {
|
if (!empty($context)) {
|
||||||
$_string .= PHP_EOL . $this->_string($context);
|
$_string .= PHP_EOL . $this->_string($context);
|
||||||
}
|
}
|
||||||
@@ -187,7 +187,7 @@ class Logger implements LoggerInterface
|
|||||||
file_put_contents('php://output', $message . PHP_EOL);
|
file_put_contents('php://output', $message . PHP_EOL);
|
||||||
}
|
}
|
||||||
|
|
||||||
$filename = storage('log-' . date('Y-m-d') . '.log', 'log/');
|
$filename = storage('/log-' . date('Y-m-d') . '.log', 'log/' . $level . '/');
|
||||||
|
|
||||||
file_put_contents($filename, $_string, FILE_APPEND);
|
file_put_contents($filename, $_string, FILE_APPEND);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,7 +4,6 @@
|
|||||||
namespace Kiri\Pool;
|
namespace Kiri\Pool;
|
||||||
|
|
||||||
|
|
||||||
use Database\Mysql\PDO;
|
|
||||||
use Exception;
|
use Exception;
|
||||||
use Kiri\Abstracts\Component;
|
use Kiri\Abstracts\Component;
|
||||||
use Kiri\Exception\ConfigException;
|
use Kiri\Exception\ConfigException;
|
||||||
|
|||||||
Reference in New Issue
Block a user