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 Stringformat(LogRecord record)Formatstatic CLogFormatterget()Get Formatterstatic StringgetClassMethod(LogRecord record)Get Class Method from Log Recordstatic StringgetExceptionTrace(LogRecord record)Get Log ExceptionStringgetHead(Handler h)Return the header string for a set of formatted records.static StringgetParameters(LogRecord record)Get Log ParametersStringgetTail(Handler h)Return the tail string for a set of formatted records.voidsetFormat(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
-
-