Brooklyn

brooklyn.util.logging
[Java] Class SimpleOneLineLogFormatter

java.lang.Object
  java.util.logging.Formatter
      brooklyn.util.logging.SimpleOneLineLogFormatter

public class SimpleOneLineLogFormatter
extends java.util.logging.Formatter

Nested Class Summary
static class SimpleOneLineLogFormatter.LogFormatterWithThreadAndCaller

 
Field Summary
protected java.util.Date date

protected java.text.DateFormat dateFormat

boolean showCaller

boolean showLevel

boolean showThread

 
Constructor Summary
SimpleOneLineLogFormatter()

SimpleOneLineLogFormatter(boolean showLevel, boolean showThread, boolean showCaller)

 
Method Summary
protected void appendDate(java.util.logging.LogRecord record, java.lang.StringBuffer sb)

protected void appendDetailsWithNewLine(java.lang.StringBuffer sb, java.util.logging.LogRecord record)

protected void appendLevel(java.util.logging.LogRecord record, java.lang.StringBuffer sb)

protected void appendThreadAndCaller(java.util.logging.LogRecord record, java.lang.StringBuffer sb)

java.lang.String format(java.util.logging.LogRecord record)

uses "YYYY-DD-MM hh:mm:ss.SSS message" format

java.lang.String getDateFormat()

protected java.lang.String getThreadName(java.util.logging.LogRecord record)

 
Methods inherited from class java.util.logging.Formatter
java.util.logging.Formatter#format(java.util.logging.LogRecord), java.util.logging.Formatter#formatMessage(java.util.logging.LogRecord), java.util.logging.Formatter#getHead(java.util.logging.Handler), java.util.logging.Formatter#getTail(java.util.logging.Handler), java.util.logging.Formatter#wait(), java.util.logging.Formatter#wait(long), java.util.logging.Formatter#wait(long, int), java.util.logging.Formatter#equals(java.lang.Object), java.util.logging.Formatter#toString(), java.util.logging.Formatter#hashCode(), java.util.logging.Formatter#getClass(), java.util.logging.Formatter#notify(), java.util.logging.Formatter#notifyAll()
 
Methods inherited from class java.lang.Object
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Field Detail

date

protected final java.util.Date date


dateFormat

protected java.text.DateFormat dateFormat


showCaller

public final boolean showCaller


showLevel

public final boolean showLevel


showThread

public final boolean showThread


 
Constructor Detail

SimpleOneLineLogFormatter

public SimpleOneLineLogFormatter()


SimpleOneLineLogFormatter

public SimpleOneLineLogFormatter(boolean showLevel, boolean showThread, boolean showCaller)


 
Method Detail

appendDate

protected void appendDate(java.util.logging.LogRecord record, java.lang.StringBuffer sb)


appendDetailsWithNewLine

protected void appendDetailsWithNewLine(java.lang.StringBuffer sb, java.util.logging.LogRecord record)


appendLevel

protected void appendLevel(java.util.logging.LogRecord record, java.lang.StringBuffer sb)


appendThreadAndCaller

protected void appendThreadAndCaller(java.util.logging.LogRecord record, java.lang.StringBuffer sb)


format

public java.lang.String format(java.util.logging.LogRecord record)
uses "YYYY-DD-MM hh:mm:ss.SSS message" format


getDateFormat

public java.lang.String getDateFormat()


getThreadName

protected java.lang.String getThreadName(java.util.logging.LogRecord record)


 

Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.