Code example for LogRecord

Methods: getLevelgetMessagegetSourceClassNamegetSourceMethodName

0
import java.util.logging.LogRecord; 
 
public class ShortFormatter extends Formatter {
  // inefficient implementation 
  public String format(LogRecord record) {
    return record.getLevel() + " [" + record.getSourceClassName() + ":"
        + record.getSourceMethodName() + "] " + record.getMessage() + "\n";
  } 
} 
Connect your IDE to all the code out there  Get Codota for Java