Package org.aksw.commons.util.slf4j
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.LoggerWrapperWraps 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
-
-
Constructor Summary
Constructors Constructor Description LoggerCount(org.slf4j.Logger logger)LoggerCount(org.slf4j.Logger logger, String fqcn)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiderror(String message)intgetErrorCount()intgetWarningCount()voidwarn(String message)-
Methods 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, warn
-
-
-
-
Constructor Detail
-
LoggerCount
public LoggerCount(org.slf4j.Logger logger)
-
LoggerCount
public LoggerCount(org.slf4j.Logger logger, String fqcn)
-
-
Method Detail
-
error
public void error(String message)
- Specified by:
errorin interfaceorg.slf4j.Logger- Overrides:
errorin classorg.slf4j.ext.LoggerWrapper
-
warn
public void warn(String message)
- Specified by:
warnin interfaceorg.slf4j.Logger- Overrides:
warnin classorg.slf4j.ext.LoggerWrapper
-
getErrorCount
public int getErrorCount()
-
getWarningCount
public int getWarningCount()
-
-