org.eclipse.paho.client.mqttv3.logging
Class SimpleLogFormatter
java.lang.Object
java.util.logging.Formatter
org.eclipse.paho.client.mqttv3.logging.SimpleLogFormatter
public class SimpleLogFormatter
- extends Formatter
SimpleLogFormatter prints a single line
log record in human readable form.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleLogFormatter
public SimpleLogFormatter()
- Constructs a
SimpleFormatter
object.
format
public String format(LogRecord r)
- Format the logrecord as a single line with well defined columns.
- Specified by:
format
in class Formatter
left
public static String left(String s,
int width,
char fillChar)
- Left justify a string.
- Parameters:
s
- the string to justifywidth
- the field width to justify withinfillChar
- the character to fill with
- Returns:
- the justified string.
Copyright © 2013. All Rights Reserved.