Class LoggerCount
java.lang.Object
org.slf4j.ext.LoggerWrapper
org.aksw.commons.util.slf4j.LoggerCount
- All Implemented Interfaces:
org.slf4j.Logger
public class LoggerCount
extends org.slf4j.ext.LoggerWrapper
Wraps a logger and counts errors.
Note: some ppl used appenders for this, but I do not think this is a good idea.
If appenders are not properly initialized, it won't work.
TODO There just has to be some class which already does the counting... but I could'nt find it yet
TODO The implementation is not complete, i.e. it only warps a small a subset of the method calls
- Author:
- Claus Stadler invalid input: '<'cstadler@informatik.uni-leipzig.de>
-
Field Summary
Fields inherited from class org.slf4j.ext.LoggerWrapper
instanceofLAL, loggerFields inherited from interface org.slf4j.Logger
ROOT_LOGGER_NAME -
Constructor Summary
ConstructorsConstructorDescriptionLoggerCount(org.slf4j.Logger logger) LoggerCount(org.slf4j.Logger logger, String fqcn) -
Method Summary
Modifier and TypeMethodDescriptionvoidintintvoidMethods inherited from class org.slf4j.ext.LoggerWrapper
debug, debug, debug, debug, debug, debug, debug, debug, debug, debug, error, error, error, error, error, error, error, error, error, getName, info, info, info, info, info, info, info, info, info, info, isDebugEnabled, isDebugEnabled, isErrorEnabled, isErrorEnabled, isInfoEnabled, isInfoEnabled, isTraceEnabled, isTraceEnabled, isWarnEnabled, isWarnEnabled, trace, trace, trace, trace, trace, trace, trace, trace, trace, trace, warn, warn, warn, warn, warn, warn, warn, warn, warnMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.slf4j.Logger
atDebug, atError, atInfo, atLevel, atTrace, atWarn, isEnabledForLevel, makeLoggingEventBuilder
-
Constructor Details
-
LoggerCount
public LoggerCount(org.slf4j.Logger logger) -
LoggerCount
-
-
Method Details
-
error
- Specified by:
errorin interfaceorg.slf4j.Logger- Overrides:
errorin classorg.slf4j.ext.LoggerWrapper
-
warn
- Specified by:
warnin interfaceorg.slf4j.Logger- Overrides:
warnin classorg.slf4j.ext.LoggerWrapper
-
getErrorCount
public int getErrorCount() -
getWarningCount
public int getWarningCount()
-