LogServiceProvider.php 640 B

123456789101112131415161718192021222324252627282930313233
  1. <?php namespace Providers;
  2. use Illuminate\Support\ServiceProvider;
  3. class LogServiceProvider extends ServiceProvider {
  4. /**
  5. * Configure the application's logging facilities.
  6. *
  7. * @return void
  8. */
  9. public function boot()
  10. {
  11. // Here we will configure the error logger setup for the application which
  12. // is built on top of the wonderful Monolog library. By default we will
  13. // build a basic log file setup which creates a single file for logs.
  14. $this->app['log']->useFiles(
  15. storage_path().'/logs/laravel.log'
  16. );
  17. }
  18. /**
  19. * Register the service provider.
  20. *
  21. * @return void
  22. */
  23. public function register()
  24. {
  25. //
  26. }
  27. }