Skip to content

Disabling system messages in LWC component #870

@dominykasvitkus

Description

@dominykasvitkus

Hello, I want to use NebulaLogger for errors in public site, but I don't want initialization and error messages in browser's console.

On c/logger/loggerService.js file I can see functions to disable messages:

let areSystemMessagesEnabled = true;

export function enableSystemMessages() {
  areSystemMessagesEnabled = true;
}

export function disableSystemMessages() {
  areSystemMessagesEnabled = false;
}

But i'm not sure how to use these as I can only import c/logger and not c/logger/loggerService.js. Is it possible to provide it as a setting when initializing logger in LWC?

Metadata

Metadata

Assignees

Labels

Layer: ConfigurationItems related to the custom hierarchy setting LoggerSettings__c or any included custom metadata typeLayer: Logger EngineItems related to the core logging engineLogging Source: Lightning ComponentsItems related to using Nebula Logger using JavaScript within lightning components (lwc & aura)Type: BugSomething isn't working

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions