Hello Splunk team!
I'm having an issue setting the level parameter on the configuration object for SplunkLogger constructor on splunk-logging JS package version "^0.10.1".
This is my code:
const config = {
token: `${process.env.SPLUNK_TOKEN}`,
url: `${process.env.SPLUNK_HOST}`,
level: "error"
};
const splunkLogger = new SplunkLogger(config);
It doesn’t matter which level I set, it always sending all the logs severities.
Could you please help me on this?
Thanks in advance!