How to use winston-loggly-bulk - 1 common examples

To help you get started, we’ve selected a few winston-loggly-bulk 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 kube-js / kube-ts-server / src / logger / winston / factory.ts View on Github external
export default (config: FactoryConfig): any => {
  const testEnv = process.env.NODE_ENV === 'test';

  if (!testEnv && config.type === 'loggly') {
    winston.add(new loggly.Loggly(config.loggly));
  }

  // only errors during testing to allow debugging
  const consoleOptions = testEnv ? { level: 'error' } : {};
  winston.add(new winston.transports.Console(consoleOptions));

  return winston;
};

winston-loggly-bulk

A Loggly transport for winston

MIT
Latest version published 1 month ago

Package Health Score

78 / 100
Full package analysis

Popular winston-loggly-bulk functions