Package org.compiere.util
Class CLogFormatter
java.lang.Object
java.util.logging.Formatter
org.compiere.util.CLogFormatter
iDempiere Log Formatter
- Version:
- $Id: CLogFormatter.java,v 1.2 2006/07/30 00:54:36 jjanke Exp $
- Author:
- Jorg Janke
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionFormatstatic CLogFormatter
get()
Get Formatterstatic String
getClassMethod
(LogRecord record) Get Class Method from Log Recordstatic String
getExceptionTrace
(LogRecord record) Get Log ExceptionGet the header string for a set of formatted records.static String
getParameters
(LogRecord record) Get Log ParametersGet the tail string for a set of formatted records.void
setFormat
(boolean shortFormat) Set using long or short FormatMethods inherited from class java.util.logging.Formatter
formatMessage
-
Field Details
-
NL
New Line
-
-
Method Details
-
get
Get Formatter- Returns:
- singleton
-
format
Format -
getHead
Get the header string for a set of formatted records. -
getTail
Get the tail string for a set of formatted records. -
setFormat
public void setFormat(boolean shortFormat) Set using long or short Format- Parameters:
shortFormat
- true to use short format
-
getClassMethod
Get Class Method from Log Record- Parameters:
record
- record- Returns:
- class.method
-
getParameters
Get Log Parameters- Parameters:
record
- log record- Returns:
- empty string or parameters
-
getExceptionTrace
Get Log Exception- Parameters:
record
- log record- Returns:
- null if not exists or exception trace text
-