Examples for logging #170
-
Hi @codefriar Kevin! Thanks for this awesome library. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@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:
From there, there are you can call any of the Use Hope this helps. |
Beta Was this translation helpful? Give feedback.
@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…