com.dynamide.util
Class DynamideLogAppender

java.lang.Object
  extended by org.apache.log4j.AppenderSkeleton
      extended by com.dynamide.util.DynamideLogAppender
All Implemented Interfaces:
org.apache.log4j.Appender, org.apache.log4j.spi.OptionHandler

public class DynamideLogAppender
extends org.apache.log4j.AppenderSkeleton


Field Summary
 
Fields inherited from class org.apache.log4j.AppenderSkeleton
closed, errorHandler, headFilter, layout, name, tailFilter, threshold, THRESHOLD_OPTION
 
Constructor Summary
DynamideLogAppender()
           
 
Method Summary
 void append(org.apache.log4j.spi.LoggingEvent event)
           
 void close()
           
static DynamideLogAppender getAppender()
           
 int getErrorCount()
           
 int getWarnAndErrorCount()
           
 int getWarnCount()
           
static DynamideLogAppender installAppender()
           
 boolean requiresLayout()
           
 void setErrorCount(int new_value)
           
 void setWarnCount(int new_value)
           
 
Methods inherited from class org.apache.log4j.AppenderSkeleton
activateOptions, addFilter, clearFilters, doAppend, finalize, getErrorHandler, getFirstFilter, getName, getOptionStrings, isAsSevereAsThreshold, setErrorHandler, setLayout, setName, setOption, setThreshold
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynamideLogAppender

public DynamideLogAppender()
Method Detail

append

public void append(org.apache.log4j.spi.LoggingEvent event)
Specified by:
append in class org.apache.log4j.AppenderSkeleton

requiresLayout

public boolean requiresLayout()
Specified by:
requiresLayout in interface org.apache.log4j.Appender
Specified by:
requiresLayout in class org.apache.log4j.AppenderSkeleton

close

public void close()
Specified by:
close in interface org.apache.log4j.Appender
Specified by:
close in class org.apache.log4j.AppenderSkeleton

getErrorCount

public int getErrorCount()
Returns:
The number of errors in this run. This is not very useful for long-running processes, such as servlets, where multiple Sessions could be generating errors, but is useful for JUnit testing, where the JVM runs with exactly one com.dynamide.Session.

setErrorCount

public void setErrorCount(int new_value)

getWarnCount

public int getWarnCount()
Returns:
The number of warnings in this run. This is not very useful for long-running processes, such as servlets, where multiple Sessions could be generating errors, but is useful for JUnit testing, where the JVM runs with exactly one com.dynamide.Session.

setWarnCount

public void setWarnCount(int new_value)

getWarnAndErrorCount

public int getWarnAndErrorCount()

getAppender

public static final DynamideLogAppender getAppender()

installAppender

public static final DynamideLogAppender installAppender()


Copyright 2001-2013 DYNAMIDE.COM. All Rights Reserved.