Skip to content

Feature/891 add a java script equivalent for logger.ignore origin#953

Open
JMercie wants to merge 2 commits intojongpie:mainfrom
JMercie:feature/891-Add_a_JavaScript_equivalent_for_Logger.ignoreOrigin
Open

Feature/891 add a java script equivalent for logger.ignore origin#953
JMercie wants to merge 2 commits intojongpie:mainfrom
JMercie:feature/891-Add_a_JavaScript_equivalent_for_Logger.ignoreOrigin

Conversation

@JMercie
Copy link
Contributor

@JMercie JMercie commented Feb 25, 2026

Summary

Adds support for ignoring JavaScript origins in stack trace parsing, providing a JavaScript-equivalent for the Apex Logger.ignoreOrigin() method. This addresses #891 and follows the same architectural pattern established by PR #908 for the Apex-side equivalent (issue #890).

Usage

Declarative (Custom Metadata):
Set LoggerParameter.IgnoredJavaScriptOrigins value to a comma-separated list of file name patterns (e.g., jquery,analytics.js)

Apex test passing:

image

Jest Test passing:

image

Disclaimer: For the lwc tests I used on it's entirety AI as I don't have exp with that framework, but did want to test what was added.

…ng 🎉

- Introduced `LoggerParameter.IgnoredJavaScriptOrigins` to configure JavaScript file patterns to ignore.
- Updated `LoggerStackTrace` to utilize ignored origins for cleaner stack traces.
- Enhanced `ComponentLogger` and `LoggerService` to manage ignored origins.
- Added tests to verify functionality of ignored origins in settings and stack trace parsing.
@JMercie JMercie requested a review from jongpie as a code owner February 25, 2026 01:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant