Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This method creates a Log object that will be use to log messages from your component. It has to be created by your component (instead of a superclass) so that the log correctly records the class name of your object.

This method is implemented with a single line.

Code Block

public Log getLogger() {
    return LogFactory.getLog(this.class);
}