Package de.intarsys.tools.logging
Class SimpleFormatter
- java.lang.Object
-
- java.util.logging.Formatter
-
- de.intarsys.tools.logging.SimpleFormatter
-
public class SimpleFormatter extends java.util.logging.FormatterA simple usable formatter for java logging
-
-
Constructor Summary
Constructors Constructor Description SimpleFormatter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidconfigure()java.lang.Stringformat(java.util.logging.LogRecord record)protected booleangetBooleanProperty(java.lang.String name, boolean defaultValue)protected intgetIntProperty(java.lang.String name, int defaultValue)intgetWidthLevel()intgetWidthName()intgetWidthSDC()intgetWidthThread()booleanisShowDate()booleanisShowLevel()booleanisShowName()booleanisShowSDC()booleanisShowThread()voidsetShowDate(boolean showDate)voidsetShowLevel(boolean showLevel)voidsetShowName(boolean showName)voidsetShowSDC(boolean showSDC)voidsetShowThread(boolean showThread)voidsetWidthLevel(int widthLevel)voidsetWidthName(int widthLoggername)voidsetWidthSDC(int widthSDC)voidsetWidthThread(int widthThread)
-
-
-
Method Detail
-
configure
protected void configure()
-
format
public java.lang.String format(java.util.logging.LogRecord record)
- Specified by:
formatin classjava.util.logging.Formatter
-
getBooleanProperty
protected boolean getBooleanProperty(java.lang.String name, boolean defaultValue)
-
getIntProperty
protected int getIntProperty(java.lang.String name, int defaultValue)
-
getWidthLevel
public int getWidthLevel()
-
getWidthName
public int getWidthName()
-
getWidthSDC
public int getWidthSDC()
-
getWidthThread
public int getWidthThread()
-
isShowDate
public boolean isShowDate()
-
isShowLevel
public boolean isShowLevel()
-
isShowName
public boolean isShowName()
-
isShowSDC
public boolean isShowSDC()
-
isShowThread
public boolean isShowThread()
-
setShowDate
public void setShowDate(boolean showDate)
-
setShowLevel
public void setShowLevel(boolean showLevel)
-
setShowName
public void setShowName(boolean showName)
-
setShowSDC
public void setShowSDC(boolean showSDC)
-
setShowThread
public void setShowThread(boolean showThread)
-
setWidthLevel
public void setWidthLevel(int widthLevel)
-
setWidthName
public void setWidthName(int widthLoggername)
-
setWidthSDC
public void setWidthSDC(int widthSDC)
-
setWidthThread
public void setWidthThread(int widthThread)
-
-