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');