Fix logging issue when using the laravel.log event.
This commit is contained in:
@@ -49,16 +49,10 @@ class Log {
|
|||||||
Event::fire('laravel.log', array($type, $message));
|
Event::fire('laravel.log', array($type, $message));
|
||||||
}
|
}
|
||||||
|
|
||||||
// If there aren't listeners on the log event, we'll just write to the
|
|
||||||
// log files using the default conventions, writing one log file per
|
|
||||||
// day so the files don't get too crowded.
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$message = static::format($type, $message);
|
$message = static::format($type, $message);
|
||||||
|
|
||||||
File::append(path('storage').'logs/'.date('Y-m-d').'.log', $message);
|
File::append(path('storage').'logs/'.date('Y-m-d').'.log', $message);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Format a log message for logging.
|
* Format a log message for logging.
|
||||||
|
|||||||
Reference in New Issue
Block a user