Name: bedrock-event-log
Owner: Digital Bazaar, Inc.
Description: Bedrock Event Log
Created: 2015-12-08 15:55:16.0
Updated: 2017-11-30 21:41:21.0
Pushed: 2017-11-30 21:42:21.0
Size: 12
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
A bedrock module that can be used to record events of defined types into a MongoDB collection.
config = require('bedrock').config;
eventLog = require('bedrock-event-log').log;
n eventType property MUST be added for each type of event to be recorded
ig['event-log'].eventTypes.MyEvent = {
dex: 'itemCategory', // (optional) specify an event property name to use as an index
sureWriteSuccess: true // when false, database operations are performed without waiting for a callback
tLog.add({
pe: 'MyEvent', // MUST correspond to a defined event type
te: new Date().toJSON(),
emCategory: 'itemCategory1234',
source: 'https://example.com/item/12345',
tor: 'user1234'
allback);
event
properties: