改名
This commit is contained in:
@@ -91,6 +91,7 @@ class Logger extends Component
|
|||||||
*/
|
*/
|
||||||
private function writer($message, $method = 'app'): string
|
private function writer($message, $method = 'app'): string
|
||||||
{
|
{
|
||||||
|
return '';
|
||||||
$this->print_r($message, $method);
|
$this->print_r($message, $method);
|
||||||
if ($message instanceof Throwable) {
|
if ($message instanceof Throwable) {
|
||||||
$message = $message->getMessage();
|
$message = $message->getMessage();
|
||||||
@@ -145,7 +146,7 @@ class Logger extends Component
|
|||||||
* @param string $application
|
* @param string $application
|
||||||
* @return mixed
|
* @return mixed
|
||||||
*/
|
*/
|
||||||
public function getLastError($application = 'app'): mixed
|
public function getLastError(string $application = 'app'): mixed
|
||||||
{
|
{
|
||||||
$filetype = [];
|
$filetype = [];
|
||||||
foreach ($this->logs as $key => $val) {
|
foreach ($this->logs as $key => $val) {
|
||||||
@@ -160,13 +161,14 @@ class Logger extends Component
|
|||||||
return end($filetype);
|
return end($filetype);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param $messages
|
* @param string $messages
|
||||||
* @param string $method
|
* @param string $method
|
||||||
* @throws
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
public function write(string $messages, $method = 'app')
|
public function write(string $messages, string $method = 'app')
|
||||||
{
|
{
|
||||||
|
return;
|
||||||
if (empty($messages)) {
|
if (empty($messages)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user