From 4c7d4cc330b1f49c6be4caccf15068453bafacfc Mon Sep 17 00:00:00 2001 From: Matthew Nibecker Date: Fri, 3 Apr 2020 15:14:01 -0700 Subject: [PATCH] Use zqd waterfall logger (#540) Change logging config to use the waterfall logger added to zqd in brimsec/zq#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 --- src/js/zqd/zqd.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/js/zqd/zqd.js b/src/js/zqd/zqd.js index 9bdb87dcfe..2d511ceef0 100644 --- a/src/js/zqd/zqd.js +++ b/src/js/zqd/zqd.js @@ -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")