. */ declare(strict_types=1); namespace FireflyIII\Providers; use Illuminate\Log\LogServiceProvider as LaravelLogServiceProvider; use Illuminate\Log\Writer; /** * @codeCoverageIgnore * Class LogServiceProvider. */ class LogServiceProvider extends LaravelLogServiceProvider { /** * Configure the Monolog handlers for the application. * * @param \Illuminate\Log\Writer $log */ protected function configureDailyHandler(Writer $log) { $log->useDailyFiles( $this->app->storagePath() . '/logs/firefly-iii.log', $this->maxFiles(), $this->logLevel() ); } /** * Configure the Monolog handlers for the application. * * @param \Illuminate\Log\Writer $log */ protected function configureSingleHandler(Writer $log) { $log->useFiles( $this->app->storagePath() . '/logs/firefly-iii.log', $this->logLevel() ); } }