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 ExceptionReturn the header string for a set of formatted records.static String
getParameters
(LogRecord record) Get Log ParametersReturn the tail string for a set of formatted records.void
setFormat
(boolean shortFormat) Set FormatMethods inherited from class java.util.logging.Formatter
formatMessage
-
Field Details
-
NL
New Line
-
-
Method Details
-
get
Get Formatter- Returns:
- singleton
-
format
Format -
getHead
Return the header string for a set of formatted records. -
getTail
Return the tail string for a set of formatted records. -
setFormat
public void setFormat(boolean shortFormat) Set Format- Parameters:
shortFormat
- format
-
getClassMethod
Get Class Method from Log Record- Parameters:
record
- record- Returns:
- class.method
-
getParameters
Get Log Parameters- Parameters:
record
- log record- Returns:
- parameters empty string or parameters
-
getExceptionTrace
Get Log Exception- Parameters:
record
- log record- Returns:
- null if exists or string
-