This commit is contained in:
2023-04-05 14:59:13 +08:00
parent 133e63a96f
commit b4d6c66ed3
+5 -6
View File
@@ -151,12 +151,11 @@ class Logger implements LoggerInterface
if (!empty($context)) {
$_string .= $this->_string($context);
}
var_dump($_string);
// file_put_contents('php://output', $_string);
//
// $filename = storage('log-' . date('Y-m-d') . '.log', 'log/');
//
// file_put_contents($filename, $_string, FILE_APPEND);
file_put_contents('php://output', $_string);
$filename = storage('log-' . date('Y-m-d') . '.log', 'log/');
file_put_contents($filename, $_string, FILE_APPEND);
}