@catalyst-sourcefuse/affinity-logger
v2.1.0-alpha.1
Published
Connectors and migrations for Logger(Opensearch Instance)
Downloads
60
Readme
@catalyst-sourcefuse/affinity-logger
Affinity logger based on pino. Streams logs to elasticsearch.
Usage
const affinityLogger = require('@catalyst-sourcefuse/affinity-logger');
const logger = Logger({
pino: { level: 'info' },
elsatic: {
index,
consistency: 'one',
node: process.env.ELASTICSEARCH_ENDPOINT,
'es-version': 6,
ecs: true,
},
});