public class EventCounter
extends org.apache.log4j.AppenderSkeleton
Constructor and Description |
---|
EventCounter()
The constructor of EventCounter.
|
Modifier and Type | Method and Description |
---|---|
void |
append(org.apache.log4j.spi.LoggingEvent event)
Add the number of corresponding level log.
|
void |
close()
Release any resources allocated within the appender such as file
handles, network connections, etc.
|
static long |
getError()
Gets the number of error log.
|
static long |
getFatal()
Gets the number of fatal log.
|
static long |
getInfo()
Gets the number of info log.
|
static long |
getWarn()
Gets the number of warn log.
|
boolean |
requiresLayout()
Configurators call this method to determine if the appender
requires a layout.
|
public static long getFatal()
public static long getError()
public static long getWarn()
public static long getInfo()
public void append(org.apache.log4j.spi.LoggingEvent event)
append
in class org.apache.log4j.AppenderSkeleton
event
- event of generating logpublic void close()
public boolean requiresLayout()
Copyright © 2023. All Rights Reserved.