Log to stdout

This commit is contained in:
Kevin Thomas
2021-11-09 21:14:32 -08:00
parent ad4a30e1b7
commit 442aeb7eb6
2 changed files with 3 additions and 6 deletions

View File

@@ -4,7 +4,7 @@
"sessionFileStorePath": "sessions",
"sampleUploadPath": "samples",
"sessionSecret": "cats",
"logFilePath": "log/noisedash.log",
"logFile": "log/noisedash.log",
"tls": false,
"tlsKey": "certs/key.pem",
"tlsCert": "certs/cert.pem"

View File

@@ -13,11 +13,8 @@ const logger = winston.createLogger({
),
defaultMeta: { service: 'noisedash' },
transports: [
//
// - Write to all logs with level `info` and below to `quick-start-combined.log`.
// - Write all logs error (and below) to `quick-start-error.log`.
//
new winston.transports.File({ filename: config.get('Server.logFilePath') })
new winston.transports.File({ filename: config.get('Server.logFile') }),
new winston.transports.Console()
]
})