Logger API
The API can be invoked through following components:
- Logger - Main API for creating and publishing logs. Additionally, you can control the execution context.
- Log - Apex class used to build the
ok__Log_Event__e
. Includes methods to log specific data, for example:- Build the Log Event and set the log message using
.log(message)
. - Exception data (type, message, stack trace...), for example
.addException(exception)
. - Custom payload, for example
.addPyaload(someString)
or.addPayloadJson(someSerializableData)
. - HTTP request/response data, for example
.addHttpRequest(request);
. - Email data, for example
.addEmail(email);
.
- Build the Log Event and set the log message using
- Invocable Error Logger - Log from flows, see Flow Logging docs.
- Logger Test Util - Control unit tests execution, see Unit Testing docs.
- Permission Manager - Manage permission sets and license assignments programmatically, see Permission Manager docs.