Skip to content

Modification of process.env.LOG_LEVEL breaks application #59

Description

@apricote

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).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions