mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Overrule logging.
This commit is contained in:
53
app/Providers/LogServiceProvider.php
Normal file
53
app/Providers/LogServiceProvider.php
Normal file
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
/**
|
||||
* LogServiceProvider.php
|
||||
* Copyright (c) 2017 thegrumpydictator@gmail.com
|
||||
* This software may be modified and distributed under the terms of the Creative Commons Attribution-ShareAlike 4.0 International License.
|
||||
*
|
||||
* See the LICENSE file for details.
|
||||
*/
|
||||
|
||||
declare(strict_types = 1);
|
||||
|
||||
namespace FireflyIII\Providers;
|
||||
|
||||
use Illuminate\Log\LogServiceProvider as LaravelLogServiceProvider;
|
||||
use Illuminate\Log\Writer;
|
||||
|
||||
/**
|
||||
* Class LogServiceProvider
|
||||
*
|
||||
* @package FireflyIII\Providers
|
||||
*/
|
||||
class LogServiceProvider extends LaravelLogServiceProvider
|
||||
{
|
||||
/**
|
||||
* Configure the Monolog handlers for the application.
|
||||
*
|
||||
* @param \Illuminate\Log\Writer $log
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
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
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
protected function configureSingleHandler(Writer $log)
|
||||
{
|
||||
$log->useFiles(
|
||||
$this->app->storagePath() . '/logs/firefly-iii.log',
|
||||
$this->logLevel()
|
||||
);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user