Apex BOOST Library
v1.7 from Lucidware Solutions (LWS)

Util

global inherited sharing virtual class Util
DescriptionThis class contains diagnostic methods with several advantages over their System counterparts:
  • Context (class, method, line number) is auto-generated, saving you typing and debugging time! The simplest debug statement generates a wealth of information:
           class MyClass {
             void myMethod() {
               aBoost.debug(); // => DEBUG|scox~ MyClass.myMethod:3
             }
           }
         
  • Methods can be essentially disabled using Apex BOOST custom settings. For example, setting Debug Level to ERROR will prevent all aBoost.debug() calls from generating a debug entry.

In order for the debug/warning/info methods to work, you'll need to create a global class extending Util. Specify this class in the Apex BOOST custom settings, then override the onDebug method to write information to System.debug.

 global with sharing class ABoostDebug extends aBoost.Util {
   global override void onDebug(LoggingLevel level, String details) {
     System.debug(level, details);
   }
 }
 

Constructors

  Util

Methods

  debug

  debug

  debug

  error

  error

  info

  info

  onDebug

  warn

  warn