• 1Installation
  • 2Loggers
  • 3Log Information
  • 4Configuration
  • 5Logging Appender
  • 6Custom Appender
  • 7Async Logging
  • 8Custom Async Appender

Log.apex

  • Docs
  • Tutorials
Getting started with Log.apex

Custom Async Appender

To create a custom async appender, you can implement Log.AsyncAppender or extend Log.DefaultAsyncAppender.

public class CustomAsyncAppender extends Log.DefaultAsyncAppender {
    public override void flush() {
        for(Log.Context ctx : this.contexts) {
            String message = ctx.message;
            // Custom code
        }
    }
}