@tutorbot/event-logger
v1.0.0
Published
Event logger
Downloads
1
Keywords
Readme
@tutorbot/event-logger
yarn add @tutorbot/event-logger
Supported DB
- mongodb
environment variables
MONGODB_EVENT_USERNAME=username
MONGODB_EVENT_PASSWORD=password
MONGODB_EVENT_HOST=localhost
MONGODB_EVENT_PORT=27017
MONGODB_EVENT_DB=event
example
const eventLogger = require("@tutorbot/event-logger");
const eventInfo = {
topic: "something-done",
subscription: "do-something-done",
maxAttempts: 1,
eventId: "123456789012",
traceId: "123456789012",
};
eventLogger.recordStart(eventInfo);