mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-21 00:00:13 +02:00
829b65c1c8
- ConsoleOutErrHandler.java used to log warnings/errors to stderr and all other messages to stdout - GuiHandler.java used to keep logging messages in memory that can then be viewed via the http gui - serverSimpleLogFormatter.java needed to format logging messages for FileHandler, ConsoleOutErrHandler and GuiHandler - serverMiniLogFormatter.java needed for proxy access logging git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@233 6c8d7289-2bf4-0310-a012-ef5d649a1542
28 lines
744 B
Java
28 lines
744 B
Java
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();
|
|
}
|
|
}
|