Browse Source

Updating log location

develop
Drew Short 5 years ago
parent
commit
3680d875ab
  1. 2
      .helm/values.yaml
  2. 4
      src/logging.ts

2
.helm/values.yaml

@ -17,7 +17,7 @@ app:
persistence: persistence:
accessMode: ReadWriteOnce accessMode: ReadWriteOnce
enabled: true enabled: true
size: 50Mi
size: 10Mi
storageClass: storage storageClass: storage
imagePullSecrets: [] imagePullSecrets: []

4
src/logging.ts

@ -3,14 +3,14 @@ require('winston-daily-rotate-file');
let errorTransport = new (winston.transports.DailyRotateFile)({ let errorTransport = new (winston.transports.DailyRotateFile)({
level: 'error', level: 'error',
filename: 'error-%DATE%.log',
filename: 'log/error-%DATE%.log',
datePattern: 'YYYY-MM-DD', datePattern: 'YYYY-MM-DD',
zippedArchive: true, zippedArchive: true,
maxFiles: '7d' maxFiles: '7d'
}); });
let combinedTransport = new (winston.transports.DailyRotateFile)({ let combinedTransport = new (winston.transports.DailyRotateFile)({
filename: 'combined-%DATE%.log',
filename: 'log/combined-%DATE%.log',
datePattern: 'YYYY-MM-DD', datePattern: 'YYYY-MM-DD',
zippedArchive: true, zippedArchive: true,
maxFiles: '7d' maxFiles: '7d'

Loading…
Cancel
Save