custom log date format

This commit is contained in:
xiaomlove
2021-04-26 20:51:41 +08:00
parent 63a2c71cb6
commit 465fd2bca8
2 changed files with 2 additions and 3 deletions

View File

@@ -15,7 +15,7 @@ class NexusFormatter
protected function formatter()
{
$format = "[%datetime%] [" . REQUEST_ID . "] %channel%.%level_name%: %message% %context% %extra%\n";
return tap(new LineFormatter($format, null, true, true), function ($formatter) {
return tap(new LineFormatter($format, 'Y-m-d H:i:s', true, true), function ($formatter) {
$formatter->includeStacktraces();
});
}