the version number of laravel is 5.5
I try to put different error level files in one directory according to the number of days
$app->configureMonologUsing(function ($monolog) {
// dd($monolog);
$file = storage_path("logs" . DIRECTORY_SEPARATOR . Date("Y-m-d", time()) . DIRECTORY_SEPARATOR . $level . ".log");
$monolog->pushHandler(new StreamHandler($file));
});
here, this $level is the error level. Can this level be obtained from the $monolog instance? I"ve seen that there is only the default debug
, the default lowest level
ask God for help. Thank you very much