ApplicationInsights-node.js icon indicating copy to clipboard operation
ApplicationInsights-node.js copied to clipboard

[Feature Request] Support configurable level for console.{level} capture

Open mdmower opened this issue 2 years ago • 1 comments

When .setAutoCollectConsole(true, true) is used to capture console.error(), console.warn(), etc. messages, it would be terrific if the level (trace, debug, info, warn, error) could be configured. For example, I'd like to capture only warning and error logs.

mdmower avatar Apr 25 '23 19:04 mdmower

@mdmower Console log telemetry collection based on the APPLICATIONINSIGHTS_INSTRUMENTATION_LOGGING_LEVEL environment variable should be possible as of version 3.1.0.

JacksonWeber avatar May 15 '24 23:05 JacksonWeber