Commit d64d6c90 authored by Taylor Otwell's avatar Taylor Otwell

Fix logging issue when using the laravel.log event.

parent c2a255c7
......@@ -49,15 +49,9 @@ class Log {
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);
}
/**
......
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