hi,
I am evaluating splunk-sdk for node. My application throws up a lot of messages, some info, some warn, some error. I have a requirement to log specific error levels only and the level is determined via a cmd line argument
e.g with Loggly I would do something like this. With the code below loggly only logs errors and ignores other types of messages.
node app.js error
// create loggly transport
var error_level = process.argv[2];
var logglyTransport = new (winston.transports.Loggly)({
subdomain: xxxx,
inputToken: xxxxx,
auth: xxxx,
json: true,
level: error_level
});
How do we achieve the same with splunk-sdk?
... View more