Skip to content

Added a JavaScript equivalent for Apex's Logger.ignoreOrigin() - #953

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

Added a JavaScript equivalent for Apex's Logger.ignoreOrigin()#953
JMercie wants to merge 2 commits into
jongpie:mainfrom
JMercie:feature/891-Add_a_JavaScript_equivalent_for_Logger.ignoreOrigin

Conversation

@JMercie

@JMercie JMercie commented Feb 25, 2026

Copy link
Copy Markdown
Contributor

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
github-actions Bot pushed a commit to nebulity/NebulaLogger that referenced this pull request Jun 14, 2026
@jongpie jongpie added Type: Enhancement New feature or request Layer: Configuration Items related to the custom hierarchy setting LoggerSettings__c or any included custom metadata type Logging Source: Lightning Components Items related to using Nebula Logger using JavaScript within lightning components (lwc & aura) Layer: Logger Engine Items related to the core logging engine labels Aug 24, 2026
@jongpie jongpie changed the title Feature/891 add a java script equivalent for logger.ignore origin Added a JavaScript equivalent for Apex's Logger.ignoreOrigin() Aug 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Layer: Configuration Items related to the custom hierarchy setting LoggerSettings__c or any included custom metadata type Layer: Logger Engine Items related to the core logging engine Logging Source: Lightning Components Items related to using Nebula Logger using JavaScript within lightning components (lwc & aura) Type: Enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants