We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a63bd8 commit a23618cCopy full SHA for a23618c
importer-db-api/src/utils/logger.js
@@ -1,3 +1,4 @@
1
+const LokiTransport = require('winston-loki')
2
const winston = require('winston')
3
const { IS_DEV } = require('../config')
4
const { combine, timestamp, printf, splat } = winston.format
@@ -39,11 +40,11 @@ if (!IS_DEV) {
39
40
}
41
42
transports.push(
- 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
- )
+ new LokiTransport({
+ host: 'http://loki-svc.toska-lokki.svc.cluster.local:3100',
+ labels: { app: 'importer-db-api', environment: process.env.NODE_ENV || 'production' }
+ })
47
+)
48
49
const logger = winston.createLogger({ transports })
50
0 commit comments