We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eac849a commit 7a63bd8Copy full SHA for 7a63bd8
importer-db-api/src/utils/logger.js
@@ -38,6 +38,13 @@ if (!IS_DEV) {
38
transports.push(new winston.transports.Console({ format: prodFormat }))
39
}
40
41
+transports.push(
42
+ new LokiTransport({
43
+ host: 'http://loki-svc.toska-lokki.svc.cluster.local:3100',
44
+ labels: { app: 'importer-db-api', environment: process.env.NODE_ENV || 'production' }
45
+ })
46
+ )
47
+
48
const logger = winston.createLogger({ transports })
49
50
module.exports = logger
0 commit comments