Feature Overview
This feature generates the logger object for the class.
This feature generates the logger object for the class.
You need to include Log.apex if you want to enable this feature.
@log
public class LogDemo {
public static void main() {
System.debug('Logging');
}
}
public class LogDemo {
public static final Log logger = Log.getLogger(LogDemo.class);
public static void main() {
System.debug('Logging');
}
}
@log
can only be applied to top level classes, as static variables can only be declared in top level classes.
Contribute on Github! Edit this section.