Skip to content

Examples for logging #170

Closed Answered by codefriar
smelgin-absa asked this question in Q&A
Discussion options

You must be logged in to vote

@smelgin-absa - Thanks for reaching out.

I've tried to make the Log class as easy-to-use as possible. You'll need to make sure the full set of metadata components is installed. - there's a trigger, a custom platform event and the classes in the classes/log folder.

I've tried to provide examples in the classes/log/examples/readme.md file, but in case those don't make sense...

In general the first step is to get an instance of the logger by calling something like this:

Log log = Log.get(); - this gives you access to the singleton logger.

From there, there are you can call any of the .add() or .publish() methods. There are plenty of overrides so basically anything you throw at either one wil…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by codefriar
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