Package org.compiere.util
Class CLogFormatter
- java.lang.Object
-
- java.util.logging.Formatter
-
- org.compiere.util.CLogFormatter
-
public class CLogFormatter extends Formatter
idempiere Log Formatter- Version:
- $Id: CLogFormatter.java,v 1.2 2006/07/30 00:54:36 jjanke Exp $
- Author:
- Jorg Janke
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
format(LogRecord record)
Formatstatic CLogFormatter
get()
Get Formatterstatic String
getClassMethod(LogRecord record)
Get Class Method from Log Recordstatic String
getExceptionTrace(LogRecord record)
Get Log ExceptionString
getHead(Handler h)
Return the header string for a set of formatted records.static String
getParameters(LogRecord record)
Get Log ParametersString
getTail(Handler h)
Return the tail string for a set of formatted records.void
setFormat(boolean shortFormat)
Set Format-
Methods inherited from class java.util.logging.Formatter
formatMessage
-
-
-
-
Field Detail
-
NL
public static String NL
New Line
-
-
Method Detail
-
get
public static CLogFormatter get()
Get Formatter- Returns:
- singleton
-
setFormat
public void setFormat(boolean shortFormat)
Set Format- Parameters:
shortFormat
- format
-
getClassMethod
public static String getClassMethod(LogRecord record)
Get Class Method from Log Record- Parameters:
record
- record- Returns:
- class.method
-
getParameters
public static String getParameters(LogRecord record)
Get Log Parameters- Parameters:
record
- log record- Returns:
- parameters empty string or parameters
-
-