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

Configure Logging Guide

Configure Logging

Configure Logging

We can configure logging before we create any loggers like this:

Log.configureFromFile('otherLogging');

Log.apex supports the following logging sources.

MethodDescription
configureDefault()Load the config from 'logging' static resource
configureFromFile(String)Load the config from the static resource specified by the name
configureFromJSON(String)Load the config from the JSON string
configure(List)Load the config from the list of rules

Contribute on Github! Edit this section.