Package org.compiere.util
Class CLogErrorBuffer
- java.lang.Object
-
- java.util.logging.Handler
-
- org.compiere.util.CLogErrorBuffer
-
public class CLogErrorBuffer extends Handler
Client Error Buffer- Version:
- $Id: CLogErrorBuffer.java,v 1.3 2006/07/30 00:54:36 jjanke Exp $
- Author:
- Jorg Janke, Teo Sarca, teo.sarca@gmail.com
- BF [ 2973298 ] NPE on CLogErrorBuffer
-
-
Constructor Summary
Constructors Constructor Description CLogErrorBuffer()
Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Closevoid
flush()
Flush (NOP)static CLogErrorBuffer
get(boolean create)
Vector<String>
getColumnNames(Properties ctx)
Get ColumnNames of Log EntriesString
getErrorInfo(Properties ctx, boolean errorsOnly)
Get/Put Error Info in StringVector<Vector<Object>>
getLogData(boolean errorsOnly)
Get Log DataLogRecord[]
getRecords(boolean errorsOnly)
Get Array of events with most recent firstboolean
isIssueError()
Issue Errorvoid
publish(LogRecord record)
Publishvoid
resetBuffer(boolean errorsOnly)
Reset Error Buffervoid
setIssueError(boolean issueError)
Set Issue Errorvoid
setLevel(Level newLevel)
Set Level.String
toString()
String Representation-
Methods inherited from class java.util.logging.Handler
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, reportError, setEncoding, setErrorManager, setFilter, setFormatter
-
-
-
-
Method Detail
-
isIssueError
public boolean isIssueError()
Issue Error- Returns:
- true if issue error
-
setIssueError
public void setIssueError(boolean issueError)
Set Issue Error- Parameters:
issueError
- issue error
-
setLevel
public void setLevel(Level newLevel) throws SecurityException
Set Level. Ignore OFF - and higher then FINE- Overrides:
setLevel
in classHandler
- Parameters:
newLevel
- ignored- Throws:
SecurityException
- See Also:
Handler.setLevel(java.util.logging.Level)
-
publish
public void publish(LogRecord record)
Publish- Specified by:
publish
in classHandler
- Parameters:
record
- log record- See Also:
Handler.publish(java.util.logging.LogRecord)
-
flush
public void flush()
Flush (NOP)- Specified by:
flush
in classHandler
- See Also:
Handler.flush()
-
close
public void close() throws SecurityException
Close- Specified by:
close
in classHandler
- Throws:
SecurityException
- See Also:
Handler.close()
-
getColumnNames
public Vector<String> getColumnNames(Properties ctx)
Get ColumnNames of Log Entries- Parameters:
ctx
- context (not used)- Returns:
- string vector
-
getLogData
public Vector<Vector<Object>> getLogData(boolean errorsOnly)
Get Log Data- Parameters:
errorsOnly
- if true errors otherwise log- Returns:
- data array
-
getRecords
public LogRecord[] getRecords(boolean errorsOnly)
Get Array of events with most recent first- Parameters:
errorsOnly
- if true errors otherwise log- Returns:
- array of events
-
resetBuffer
public void resetBuffer(boolean errorsOnly)
Reset Error Buffer- Parameters:
errorsOnly
- if true errors otherwise log
-
getErrorInfo
public String getErrorInfo(Properties ctx, boolean errorsOnly)
Get/Put Error Info in String- Parameters:
ctx
- contexterrorsOnly
- if true errors otherwise log- Returns:
- error info
-
toString
public String toString()
String Representation
-
get
public static CLogErrorBuffer get(boolean create)
-
-