We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
I'm using winston, winston-express and winston-rollbar modules for error logging. Currently the logging is not working for me..
var winston = require('winston'), expressWinston = require('express-winston'), logDir = 'log', errorLogger, requestlogger; require('winston-rollbar').Rollbar;
var options = {'rollbarAccessToken':'7d38e90d23c44eb2b8dd1ca6a0cd67d8',endpoint: "https://api.rollbar.com/api/1/"} winston.add(winston.transports.Rollbar, options);
errorLogger = new winston.Logger({ transports: [ new winston.transports.Rollbar(options) ], exitOnError: false }); requestlogger = new winston.Logger({ transports: [ new winston.transports.Rollbar(options) ], exceptionHandlers: [ new winston.transports.Rollbar(options) ] exitOnError: false });
exports.winstonExpressRequestLog = expressWinston.logger({ winstonInstance: requestlogger, msg: "HTTP {{req.method}} {{req.url}}", meta: true, colorStatus: true, });
thanks in advance..
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi,
I'm using winston, winston-express and winston-rollbar modules for error logging.
Currently the logging is not working for me..
var winston = require('winston'),
expressWinston = require('express-winston'),
logDir = 'log',
errorLogger,
requestlogger;
require('winston-rollbar').Rollbar;
var options = {'rollbarAccessToken':'7d38e90d23c44eb2b8dd1ca6a0cd67d8',endpoint: "https://api.rollbar.com/api/1/"}
winston.add(winston.transports.Rollbar, options);
errorLogger = new winston.Logger({
transports: [
new winston.transports.Rollbar(options)
],
exitOnError: false
});
requestlogger = new winston.Logger({
transports: [
new winston.transports.Rollbar(options)
],
exceptionHandlers: [
new winston.transports.Rollbar(options)
]
exitOnError: false
});
exports.winstonExpressRequestLog = expressWinston.logger({
winstonInstance: requestlogger,
msg: "HTTP {{req.method}} {{req.url}}",
meta: true,
colorStatus: true,
});
thanks in advance..
The text was updated successfully, but these errors were encountered: