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

Log.apex

  • Docs
  • Tutorials
Getting started with Log.apex

Loggers

We need to create an instance of logger before we start to do logging.

private static final Log logger = Log.getLogger(MyClass.class);

You can pass in the current class to get the logger instance. Alternatively, you can pass in a unique string to get the logger.

private static final Log logger = Log.getLogger('MyClass');
Done