modify
This commit is contained in:
@@ -223,7 +223,7 @@ class BaseObject implements Configure
|
|||||||
$message .= PHP_EOL . "\033[41;37m[" . date('Y-m-d H:i:s') . '][ERROR]: ' . $file . "\033[0m";
|
$message .= PHP_EOL . "\033[41;37m[" . date('Y-m-d H:i:s') . '][ERROR]: ' . $file . "\033[0m";
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->logger()->critical(Logger::ERROR, [$message]);
|
$this->logger()->error(Logger::ERROR, [$message]);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -164,6 +164,8 @@ class Logger implements LoggerInterface
|
|||||||
|
|
||||||
$_string = '[' . now() . '] production.' . $level . ': ' . $this->_string($message, $context);
|
$_string = '[' . now() . '] production.' . $level . ': ' . $this->_string($message, $context);
|
||||||
|
|
||||||
|
echo $_string;
|
||||||
|
|
||||||
$this->_loggers[] = $_string;
|
$this->_loggers[] = $_string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user