This commit is contained in:
2023-04-18 23:59:29 +08:00
parent af284dbe4b
commit b8cc600ae6
+1 -1
View File
@@ -135,7 +135,7 @@ class Logger implements LoggerInterface
// TODO: Implement log() method.
$levels = Config::get('log.level', Logger::LOGGER_LEVELS);
if (in_array($level, $levels)) {
$_string = "[" . now() . ']' . ucfirst($level) . ': ' . $message . PHP_EOL;
$_string = "\033[31m[" . now() . ']' . ucfirst($level) . ": \033[0m" . $message . PHP_EOL;
if (!empty($context)) {
$_string .= $this->_string($context);
}