Skip to content

Commit

Permalink
Use zqd waterfall logger (#540)
Browse files Browse the repository at this point in the history
Change logging config to use the waterfall logger added to zqd in
brimdata/super#492. Logs named http.access will be logged in zqd-access.log,
every other log will go to zqd-core.log.
new config sends all access logs to access.log. All other
  • Loading branch information
mattnibs authored Apr 3, 2020
1 parent f0780dd commit 4c7d4cc
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/js/zqd/zqd.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,16 @@ function writeZqdConfigFile(): string {
const accessLogFile = join(logDir, "zqd-access.log")

const data = `
loggers:
- name: zqd
level: info
path: ${zqdLogFile}
mode: rotate
logger:
type: waterfall
children:
- name: http.access
level: info
path: ${accessLogFile}
mode: rotate
- level: info
path: ${zqdLogFile}
mode: rotate
`

const confFile = join(app.getPath("temp"), "zqd-config.yaml")
Expand Down

0 comments on commit 4c7d4cc

Please sign in to comment.