Use facades.

This commit is contained in:
Taylor Otwell
2014-08-20 17:04:09 -05:00
parent 2ab3d52540
commit 838b20d4a0
3 changed files with 9 additions and 11 deletions

View File

@@ -1,5 +1,6 @@
<?php namespace App\Providers;
use Log;
use Illuminate\Support\ServiceProvider;
class LogServiceProvider extends ServiceProvider {
@@ -11,13 +12,7 @@ class LogServiceProvider extends ServiceProvider {
*/
public function boot()
{
// Here we will configure the error logger setup for the application which
// is built on top of the wonderful Monolog library. By default we will
// build a basic log file setup which creates a single file for logs.
$this->app['log']->useFiles(
storage_path().'/logs/laravel.log'
);
Log::useFiles(storage_path().'/logs/laravel.log');
}
/**