All Downloads are FREE. Search and download functionalities are using the official Maven repository.

br.com.andrewribeiro.ribrest.logs.RibrestLogsFormatter Maven / Gradle / Ivy

Go to download

Ribrest Framework - A simple Java framework that truly improve your productivity when developing restful based webservices.

There is a newer version: 1.27.0
Show newest version
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();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy