create code for clear pass datat for telescope in concole.cernel and config loging
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
namespace App\Console;
|
namespace App\Console;
|
||||||
|
|
||||||
|
use App\Console\Commands\ManageDataTelescopeCommand;
|
||||||
use Illuminate\Console\Scheduling\Schedule;
|
use Illuminate\Console\Scheduling\Schedule;
|
||||||
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
|
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
|
||||||
|
|
||||||
@@ -42,6 +43,11 @@ class Kernel extends ConsoleKernel
|
|||||||
|
|
||||||
$schedule->command("db:backup")
|
$schedule->command("db:backup")
|
||||||
->weekly()->at('03:00')->appendOutputTo(storage_path('logs/mariadb-backup.log'));
|
->weekly()->at('03:00')->appendOutputTo(storage_path('logs/mariadb-backup.log'));
|
||||||
|
|
||||||
|
$schedule->command('telescope:prune --hours=48')
|
||||||
|
->dailyAt('04:00')
|
||||||
|
->appendOutputTo(storage_path('logs/telescope.log'));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -141,5 +141,11 @@ return [
|
|||||||
'path' => storage_path('logs/mariadb-backup.log'),
|
'path' => storage_path('logs/mariadb-backup.log'),
|
||||||
'level' => 'info',
|
'level' => 'info',
|
||||||
],
|
],
|
||||||
|
|
||||||
|
'telescope' => [
|
||||||
|
'driver' => 'single',
|
||||||
|
'path' => storage_path('logs/telescope.log'),
|
||||||
|
'level' => 'info',
|
||||||
|
],
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user