Skip to content

Commit

Permalink
jobservice: add DB to job logger config (goharbor#18821)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
liubin authored Jun 19, 2023
1 parent b822952 commit 4035f43
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/jobservice/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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:
Expand Down Expand Up @@ -630,4 +634,4 @@ go build -a -o jobservice
jobservice -c <config_yaml_file_path>
```

Enjoy it!
Enjoy it!

0 comments on commit 4035f43

Please sign in to comment.