Working on app structure.
This commit is contained in:
33
app/providers/LogServiceProvider.php
Normal file
33
app/providers/LogServiceProvider.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php namespace Providers;
|
||||
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
|
||||
class LogServiceProvider extends ServiceProvider {
|
||||
|
||||
/**
|
||||
* Configure the application's logging facilities.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
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'
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Register the service provider.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function register()
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user