You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm looking to pass an additional string along with each log message so as to dynamically define the program. Any suggestions how could I go about doing that?
Example:
var winston = require('winston');
require('winston-papertrail').Papertrail;
var winstonPapertrail = new winston.transports.Papertrail({
host: 'logs12345.papertrailapp.com',
port: 12345,
program: 'PINEAPPLES_ARE_BLUE'
});
var logger = new winston.Logger({ transports: [winstonPapertrail] });
logger.info('This is my log message', 'PINEAPPLES_ARE_BLUE');
The text was updated successfully, but these errors were encountered:
phuze
changed the title
Custom Data
Variable Program String
Dec 11, 2017
I'm looking to pass an additional string along with each log message so as to dynamically define the
program
. Any suggestions how could I go about doing that?Example:
logger.info('This is my log message', 'PINEAPPLES_ARE_BLUE');
The text was updated successfully, but these errors were encountered: