Package org.compiere.util
Class CLogErrorBuffer
java.lang.Object
java.util.logging.Handler
org.compiere.util.CLogErrorBuffer
Handler that publish log record to the system error output stream
- 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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Closevoid
flush()
Flush (NOP)static CLogErrorBuffer
get
(boolean create) Get or create CLogErrorBuffer handler instance.getColumnNames
(Properties ctx) Get ColumnNames of Log EntriesgetErrorInfo
(Properties ctx, boolean errorsOnly) Get/Put Error Info in StringgetLogData
(boolean errorsOnly) Get Log DatagetRecords
(boolean errorsOnly) Get Array of events with most recent firstboolean
Issue Errorvoid
Publishvoid
resetBuffer
(boolean errorsOnly) Reset Error Buffervoid
setIssueError
(boolean issueError) Set Issue Errorvoid
Set Level.toString()
String RepresentationMethods inherited from class java.util.logging.Handler
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, reportError, setEncoding, setErrorManager, setFilter, setFormatter
-
Constructor Details
-
CLogErrorBuffer
public CLogErrorBuffer()Constructor
-
-
Method Details
-
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
Set Level. Ignore OFF - and higher then FINE- Overrides:
setLevel
in classHandler
- Parameters:
newLevel
- ignored- Throws:
SecurityException
- See Also:
-
publish
Publish -
flush
public void flush()Flush (NOP) -
close
Close- Specified by:
close
in classHandler
- Throws:
SecurityException
- See Also:
-
getColumnNames
Get ColumnNames of Log Entries- Parameters:
ctx
- context (not used)- Returns:
- string vector
-
getLogData
Get Log Data- Parameters:
errorsOnly
- if true errors otherwise log- Returns:
- data array
-
getRecords
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
Get/Put Error Info in String- Parameters:
ctx
- contexterrorsOnly
- if true errors otherwise log- Returns:
- error info
-
toString
String Representation -
get
Get or create CLogErrorBuffer handler instance.- Parameters:
create
-- Returns:
- CLogErrorBuffer handler instance
-