Adempiere 3.5.2a

org.compiere.util
Class CLogErrorBuffer

java.lang.Object
  extended by java.util.logging.Handler
      extended by 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

Constructor Summary
CLogErrorBuffer()
          Constructor
 
Method Summary
 void close()
          Close
 void flush()
          Flush (NOP)
static CLogErrorBuffer get(boolean create)
          Get Client Log Handler
 Vector<String> getColumnNames(Properties ctx)
          Get ColumnNames of Log Entries
 String getErrorInfo(Properties ctx, boolean errorsOnly)
          Get/Put Error Info in String
 Vector<Vector> getLogData(boolean errorsOnly)
          Get Log Data
 LogRecord[] getRecords(boolean errorsOnly)
          Get Array of events with most recent first
 boolean isIssueError()
          Issue Error
 void publish(LogRecord record)
          Publish
 void resetBuffer(boolean errorsOnly)
          Reset Error Buffer
 void setIssueError(boolean issueError)
          Set Issue Error
 void 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CLogErrorBuffer

public CLogErrorBuffer()
Constructor

Method Detail

get

public static CLogErrorBuffer get(boolean create)
Get Client Log Handler

Parameters:
create - create if not exists
Returns:
handler

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 higer then FINE

Overrides:
setLevel in class Handler
Parameters:
newLevel - ignored
Throws:
SecurityException
See Also:
Handler.setLevel(java.util.logging.Level)

publish

public void publish(LogRecord record)
Publish

Specified by:
publish in class Handler
Parameters:
record - log record
See Also:
Handler.publish(java.util.logging.LogRecord)

flush

public void flush()
Flush (NOP)

Specified by:
flush in class Handler
See Also:
Handler.flush()

close

public void close()
           throws SecurityException
Close

Specified by:
close in class Handler
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> 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 - context
errorsOnly - if true errors otherwise log
Returns:
error info

toString

public String toString()
String Representation

Overrides:
toString in class Object
Returns:
info

Adempiere 3.5.2a

Adempiere® is a registered trademark of ADempiere Business Inc. ©2004-2008 HumanFlash.com All rights reserved.