List of usage examples for java.util.logging Formatter subclass-usage
From source file CustomFormatter.java
public class CustomFormatter extends Formatter { public synchronized String format(LogRecord record) { String methodName = record.getSourceMethodName(); String message = record.getMessage(); StringBuffer buffer = new StringBuffer(50); buffer.append(methodName);
From source file MyHtmlFormatter.java
class MyHtmlFormatter extends Formatter { public String format(LogRecord rec) { StringBuffer buf = new StringBuffer(1000); if (rec.getLevel().intValue() >= Level.WARNING.intValue()) { buf.append("<b>"); buf.append(rec.getLevel());
From source file NemaLogFormatter.java
/** This class is used to display the formatted logs.
*
* @author kumaramit01
* @since 0.4.0
*
*/
From source file HTMLFormatter.java
class HTMLFormatter extends java.util.logging.Formatter { public String format(LogRecord record) { return ("<tr><td>" + (new Date(record.getMillis())).toString() + "</td><td>" + record.getMessage() + "</td></tr>\n"); }
From source file at.bitfire.davdroid.log.PlainTextFormatter.java
public class PlainTextFormatter extends Formatter { public final static PlainTextFormatter LOGCAT = new PlainTextFormatter(true), DEFAULT = new PlainTextFormatter(false); private final boolean logcat;
From source file org.syphr.mythtv.test.ConsoleFormatter.java
public class ConsoleFormatter extends Formatter { private static final String NEWLINE = System.getProperty("line.separator"); @Override public String format(LogRecord record) { StringBuilder formattedRecord = new StringBuilder(
From source file ch.jamiete.hilda.music.MusicLogFormat.java
class MusicLogFormat extends Formatter { private final SimpleDateFormat sdf = new SimpleDateFormat("YYYY-MM-dd kk:mm:ss"); @Override public final String format(final LogRecord record) { String log = "";
From source file joachimeichborn.geotag.logging.LongLogFormat.java
public class LongLogFormat extends Formatter { @Override public String format(final LogRecord aRecord) { final StringBuilder sb = new StringBuilder(); sb.append(new DateTime(aRecord.getMillis()).toString()); sb.append(" [").append(aRecord.getLevel().getName().charAt(0)).append("] ");
From source file ch.jamiete.hilda.LogFormat.java
public class LogFormat extends Formatter { private final SimpleDateFormat sdf = new SimpleDateFormat("YYYY-MM-dd kk:mm:ss"); @Override public String format(final LogRecord record) { String log = "";
From source file simj.util.logging.HTMLFormatter.java
/**
* This class implements an HTMLFormatter for log records.
* The output is usually written to a file.
*
* @version 1.0
* @author <a href="mailto:patrik.fuhrer@unifr.ch">Patrik Fuhrer</a>