Working on overall app structure.

This commit is contained in:
Taylor Otwell
2014-07-31 15:13:50 -05:00
parent a5001352e6
commit 0e0fd73b43
15 changed files with 226 additions and 113 deletions

View File

@@ -0,0 +1,41 @@
<?php
use Illuminate\Support\ServiceProvider;
class LogServiceProvider extends ServiceProvider {
/**
* Bootstrap the application events.
*
* @return void
*/
public function boot()
{
$this->setupLogging();
}
/**
* Register the service provider.
*
* @return void
*/
public function register()
{
//
}
/**
* Setup the logging facilities for the application.
*
* @return void
*/
protected function setupLogging()
{
// 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.
Log::useFiles(storage_path().'/logs/laravel.log');
}
}