Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.

Always sends extraArgs #10

Open
dandv opened this issue Jul 13, 2018 · 0 comments
Open

Always sends extraArgs #10

dandv opened this issue Jul 13, 2018 · 0 comments

Comments

@dandv
Copy link

dandv commented Jul 13, 2018

Due to passing all arguments to rollbar, I see that all occurrences of a log item show a null extraArgs:

image

import winston from 'winston';
import { } from 'winston-transport-rollbar';

const log = winston.createLogger({
  transports: [
    new winston.transports.Rollbar({
      rollbarConfig: { accessToken: 'REPLACEME' },
      format: winston.format.simple(),
    }),
  ],
  levels: { critical: 0, error: 1, warn: 2, info: 3, debug: 4 },
});

// winston-transport-rollbar sends a null extraArgs
log.critical('No extra args here');  // ... but extraArgs [null] shows up in the UI
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant