org.eclipse.paho.client.mqttv3.logging
Class SimpleLogFormatter

java.lang.Object
  extended by java.util.logging.Formatter
      extended by org.eclipse.paho.client.mqttv3.logging.SimpleLogFormatter

public class SimpleLogFormatter
extends Formatter

SimpleLogFormatter prints a single line log record in human readable form.


Constructor Summary
SimpleLogFormatter()
          Constructs a SimpleFormatter object.
 
Method Summary
 String format(LogRecord r)
          Format the logrecord as a single line with well defined columns.
static String left(String s, int width, char fillChar)
          Left justify a string.
 
Methods inherited from class java.util.logging.Formatter
formatMessage, getHead, getTail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleLogFormatter

public SimpleLogFormatter()
Constructs a SimpleFormatter object.

Method Detail

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 justify
width - the field width to justify within
fillChar - the character to fill with
Returns:
the justified string.


Copyright © 2013. All Rights Reserved.