#feature: add Jenkins deploy monitor & log clean task
This commit is contained in:
8
config/jenkins.php
Normal file
8
config/jenkins.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'host' => env('JENKINS_HOST'),
|
||||
'username' => env('JENKINS_USERNAME'),
|
||||
'api_token' => env('JENKINS_API_TOKEN'),
|
||||
'timeout' => (int) env('JENKINS_TIMEOUT', 30),
|
||||
];
|
||||
@@ -127,6 +127,39 @@ return [
|
||||
'path' => storage_path('logs/laravel.log'),
|
||||
],
|
||||
|
||||
// 定时任务日志通道
|
||||
'scheduled-tasks' => [
|
||||
'driver' => 'daily',
|
||||
'path' => storage_path('logs/scheduled-tasks/scheduled-tasks.log'),
|
||||
'level' => env('LOG_LEVEL', 'debug'),
|
||||
'days' => 7,
|
||||
'replace_placeholders' => true,
|
||||
],
|
||||
|
||||
'git-monitor' => [
|
||||
'driver' => 'daily',
|
||||
'path' => storage_path('logs/scheduled-tasks/git-monitor.log'),
|
||||
'level' => env('LOG_LEVEL', 'debug'),
|
||||
'days' => 7,
|
||||
'replace_placeholders' => true,
|
||||
],
|
||||
|
||||
'log-analysis' => [
|
||||
'driver' => 'daily',
|
||||
'path' => storage_path('logs/scheduled-tasks/log-analysis.log'),
|
||||
'level' => env('LOG_LEVEL', 'debug'),
|
||||
'days' => 7,
|
||||
'replace_placeholders' => true,
|
||||
],
|
||||
|
||||
'jenkins-monitor' => [
|
||||
'driver' => 'daily',
|
||||
'path' => storage_path('logs/scheduled-tasks/jenkins-monitor.log'),
|
||||
'level' => env('LOG_LEVEL', 'debug'),
|
||||
'days' => 7,
|
||||
'replace_placeholders' => true,
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user