mirror of
https://github.com/goharbor/harbor
synced 2024-09-20 17:45:44 +00: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
|
#Loggers for the running job
|
||||||
job_loggers:
|
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
|
level: "DEBUG" # INFO/DEBUG/WARNING/ERROR/FATAL
|
||||||
- name: "FILE"
|
- name: "FILE"
|
||||||
level: "DEBUG"
|
level: "DEBUG"
|
||||||
|
@ -423,6 +423,10 @@ job_loggers:
|
||||||
duration: 1 #days
|
duration: 1 #days
|
||||||
settings: # Customized settings of sweeper
|
settings: # Customized settings of sweeper
|
||||||
work_dir: "/tmp/job_logs"
|
work_dir: "/tmp/job_logs"
|
||||||
|
- name: "DB"
|
||||||
|
level: "DEBUG"
|
||||||
|
sweeper:
|
||||||
|
duration: 1 #days
|
||||||
|
|
||||||
#Loggers for the job service
|
#Loggers for the job service
|
||||||
loggers:
|
loggers:
|
||||||
|
@ -630,4 +634,4 @@ go build -a -o jobservice
|
||||||
jobservice -c <config_yaml_file_path>
|
jobservice -c <config_yaml_file_path>
|
||||||
```
|
```
|
||||||
|
|
||||||
Enjoy it!
|
Enjoy it!
|
||||||
|
|
Loading…
Reference in New Issue
Block a user