Skip to content

I'm not able to write the code Logger.error() #725

Answered by jongpie
rohrat18 asked this question in Q&A
Discussion options

You must be logged in to vote

Since you already have an existing Logger class in your org, you won't be able to use the unlocked package.

To use the managed package, you'll need to include the Nebula namespace, like:

Nebula.Logger.error('example error log entry');
Nebula.Logger.saveLog();

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@rohrat18
Comment options

@jongpie
Comment options

Answer selected by rohrat18
@rohrat18
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants