Commit d31487d4 authored by fuyunnan's avatar fuyunnan

将日志具体到年月日

parent dc09753f
...@@ -454,7 +454,7 @@ if (!function_exists('putLog')) { ...@@ -454,7 +454,7 @@ if (!function_exists('putLog')) {
if (is_array($output)) { if (is_array($output)) {
$output = var_export($output, true); $output = var_export($output, true);
} }
$output = '[ ' . date('H:i:s', time()) . ' ] --- ' . $output; $output = '[ ' . date('Y-m-d H:i:s', time()) . ' ] --- ' . $output;
$formatter = new LineFormatter($output . "\r\n"); $formatter = new LineFormatter($output . "\r\n");
$stream->setFormatter($formatter); $stream->setFormatter($formatter);
$log->pushHandler($stream); $log->pushHandler($stream);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment