How to use the @reactioncommerce/logger.bunyan.createLogger function in @reactioncommerce/logger

To help you get started, we’ve selected a few @reactioncommerce/logger examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github reactioncommerce / reaction / imports / plugins / included / taxes-avalara / server / methods / avalogger.js View on Github external
data: logData,
      level: this.levelToName[logData.level]
    };
    Logs.insert(avalog);
  });
}

const streams = [
  {
    type: "raw",
    stream: new BunyanMongo()
  }
];


const Avalogger = bunyan.createLogger({
  level,
  name: "Avalara",
  streams
});

export default Avalogger;

@reactioncommerce/logger

Reaction application logging based on Bunyan logger

MIT
Latest version published 3 years ago

Package Health Score

36 / 100
Full package analysis

Similar packages