mirror of
https://github.com/kaythomas0/noisedash.git
synced 2025-11-13 11:56:20 +00:00
Log to stdout
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
"sessionFileStorePath": "sessions",
|
"sessionFileStorePath": "sessions",
|
||||||
"sampleUploadPath": "samples",
|
"sampleUploadPath": "samples",
|
||||||
"sessionSecret": "cats",
|
"sessionSecret": "cats",
|
||||||
"logFilePath": "log/noisedash.log",
|
"logFile": "log/noisedash.log",
|
||||||
"tls": false,
|
"tls": false,
|
||||||
"tlsKey": "certs/key.pem",
|
"tlsKey": "certs/key.pem",
|
||||||
"tlsCert": "certs/cert.pem"
|
"tlsCert": "certs/cert.pem"
|
||||||
|
|||||||
@@ -13,11 +13,8 @@ const logger = winston.createLogger({
|
|||||||
),
|
),
|
||||||
defaultMeta: { service: 'noisedash' },
|
defaultMeta: { service: 'noisedash' },
|
||||||
transports: [
|
transports: [
|
||||||
//
|
new winston.transports.File({ filename: config.get('Server.logFile') }),
|
||||||
// - Write to all logs with level `info` and below to `quick-start-combined.log`.
|
new winston.transports.Console()
|
||||||
// - Write all logs error (and below) to `quick-start-error.log`.
|
|
||||||
//
|
|
||||||
new winston.transports.File({ filename: config.get('Server.logFilePath') })
|
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user