Default Appender
Log.apex has a default async appender, Log.DefaultAsyncAppender
, which outputs logging information toSystem.debug
asynchronously in a queueable job.
The default async appender has similar behavior as the default appender except that it runs asynchronously.
Here is how you configure it.
[
{
"patterns": [ "testAsync" ],
"level": "Debug",
"appenders": [
{
"name": "Log.DefaultAsyncAppender"
}
]
}
]