mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-25 19:56:09 +01:00
jobservice: add DB to job logger config (#18821)
jobservice: add DB to job logger config in readme Job logger support file, db and stdout, the comment should include the type of DB as well as file and stdout. Signed-off-by: bin liu <liubin0329@gmail.com>
This commit is contained in:
parent
b822952537
commit
4035f438fb
@ -413,7 +413,7 @@ worker_pool:
|
||||
|
||||
#Loggers for the running job
|
||||
job_loggers:
|
||||
- name: "STD_OUTPUT" # logger backend name, only support "FILE" and "STD_OUTPUT"
|
||||
- name: "STD_OUTPUT" # logger backend name, only support "DB", "FILE" and "STD_OUTPUT"
|
||||
level: "DEBUG" # INFO/DEBUG/WARNING/ERROR/FATAL
|
||||
- name: "FILE"
|
||||
level: "DEBUG"
|
||||
@ -423,6 +423,10 @@ job_loggers:
|
||||
duration: 1 #days
|
||||
settings: # Customized settings of sweeper
|
||||
work_dir: "/tmp/job_logs"
|
||||
- name: "DB"
|
||||
level: "DEBUG"
|
||||
sweeper:
|
||||
duration: 1 #days
|
||||
|
||||
#Loggers for the job service
|
||||
loggers:
|
||||
@ -630,4 +634,4 @@ go build -a -o jobservice
|
||||
jobservice -c <config_yaml_file_path>
|
||||
```
|
||||
|
||||
Enjoy it!
|
||||
Enjoy it!
|
||||
|
Loading…
Reference in New Issue
Block a user