Log.apex

  • Docs
  • Tutorials
Docs Menu
  • Logger
  • Configuration
    • Configuration File
    • Configure Logging
  • Appenders
    • Default Appenders
    • Custom Appenders
    • Async Logging
    • Default Async Appenders
    • Custom Async Appenders

Default Async Appenders Guide

Default Async Appenders

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"
            }
        ]
    }
]

Options

The default async appender shares the same options as the default appender.

Contribute on Github! Edit this section.