br.com.andrewribeiro.ribrest.logs.RibrestLogsFormatter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of Ribrest Show documentation
Show all versions of Ribrest Show documentation
Ribrest Framework - A simple Java framework that truly improve your productivity when developing restful based webservices.
package br.com.andrewribeiro.ribrest.logs;
import java.util.logging.Formatter;
import java.util.logging.LogRecord;
/**
*
* @author Andrew Ribeiro
*/
public class RibrestLogsFormatter extends Formatter{
@Override
public String format(LogRecord lr) {
StringBuilder sb = new StringBuilder();
sb.append("Ribrest ");
sb.append(lr.getLevel()).append(": ");
sb.append(lr.getMessage()).append("\n");
return sb.toString();
}
}