com.funambol.util
Class ErrorInterceptAppender

java.lang.Object
  extended by com.funambol.util.ErrorInterceptAppender
All Implemented Interfaces:
Appender

public class ErrorInterceptAppender
extends java.lang.Object
implements Appender


Constructor Summary
ErrorInterceptAppender()
           
 
Method Summary
 void clearErrors()
           
 void closeLogFile()
          Close Log file
 void deleteLogFile()
          Delete Log file
 java.lang.String getErrors()
           
 LogContent getLogContent()
          Get the whole log content for this appender
 void initLogFile()
          Initialize Log File
 int numErrors()
           
 void openLogFile()
          Open Log file
 void setLogLevel(int level)
          Perform additional actions needed when setting a new level.
 void writeLogMessage(java.lang.String level, java.lang.String msg)
          Append a message to the Log file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ErrorInterceptAppender

public ErrorInterceptAppender()
Method Detail

closeLogFile

public void closeLogFile()
Description copied from interface: Appender
Close Log file

Specified by:
closeLogFile in interface Appender

deleteLogFile

public void deleteLogFile()
Description copied from interface: Appender
Delete Log file

Specified by:
deleteLogFile in interface Appender

initLogFile

public void initLogFile()
Description copied from interface: Appender
Initialize Log File

Specified by:
initLogFile in interface Appender

openLogFile

public void openLogFile()
Description copied from interface: Appender
Open Log file

Specified by:
openLogFile in interface Appender

setLogLevel

public void setLogLevel(int level)
Description copied from interface: Appender
Perform additional actions needed when setting a new level.

Specified by:
setLogLevel in interface Appender

writeLogMessage

public void writeLogMessage(java.lang.String level,
                            java.lang.String msg)
                     throws java.io.IOException
Description copied from interface: Appender
Append a message to the Log file

Specified by:
writeLogMessage in interface Appender
Throws:
java.io.IOException

numErrors

public int numErrors()

clearErrors

public void clearErrors()

getErrors

public java.lang.String getErrors()

getLogContent

public LogContent getLogContent()
                         throws java.io.IOException
Description copied from interface: Appender
Get the whole log content for this appender

Specified by:
getLogContent in interface Appender
Returns:
LogContent the LogContent object log Container
Throws:
java.io.IOException


Copyright © 2001-2009 Funambol.