You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
yacy_search_server/source/de/anomic/server/logging/serverMiniLogFormatter.java

28 lines
744 B

package de.anomic.server.logging;
import java.util.logging.LogRecord;
import java.util.logging.SimpleFormatter;
public final class serverMiniLogFormatter extends SimpleFormatter {
private final StringBuffer buffer = new StringBuffer();
public serverMiniLogFormatter() {
super();
}
public synchronized String format(LogRecord record) {
StringBuffer buffer = this.buffer;
buffer.setLength(0);
buffer.append(formatMessage(record));
// adding the stack trace if available
buffer.append(System.getProperty("line.separator"));
return buffer.toString();
}
}