From 3680d875ab44001bde262fe07784e1889be98e9a Mon Sep 17 00:00:00 2001 From: Drew Short Date: Mon, 13 Jan 2020 12:35:22 -0600 Subject: [PATCH] Updating log location --- .helm/values.yaml | 2 +- src/logging.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.helm/values.yaml b/.helm/values.yaml index 5a83809..da8f2e2 100644 --- a/.helm/values.yaml +++ b/.helm/values.yaml @@ -17,7 +17,7 @@ app: persistence: accessMode: ReadWriteOnce enabled: true - size: 50Mi + size: 10Mi storageClass: storage imagePullSecrets: [] diff --git a/src/logging.ts b/src/logging.ts index 03c00cd..bffb531 100644 --- a/src/logging.ts +++ b/src/logging.ts @@ -3,14 +3,14 @@ require('winston-daily-rotate-file'); let errorTransport = new (winston.transports.DailyRotateFile)({ level: 'error', - filename: 'error-%DATE%.log', + filename: 'log/error-%DATE%.log', datePattern: 'YYYY-MM-DD', zippedArchive: true, maxFiles: '7d' }); let combinedTransport = new (winston.transports.DailyRotateFile)({ - filename: 'combined-%DATE%.log', + filename: 'log/combined-%DATE%.log', datePattern: 'YYYY-MM-DD', zippedArchive: true, maxFiles: '7d'