Closed
Description
We use the LOG_LEVEL
environment variable to configure log4js and pass it values like LOG_LEVEL=trace
to enable logging at a specific level.
Currently the Splunk SDK just overwrites our custom levels, so inside the application this shows up:
console.log(process.env.LOG_LEVEL) // Outputs '1'
As LOG_LEVEL
seems to be used by multiple application developers (Blog Post), the SDK should IMO either not change the value, or use some prefixed environment variable (SPLUNK_LOG_LEVEL
, SPLUNK_SDK_LOG_LEVEL
).