|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.elca.el4j.util.socketstatistics.genericlogger.GenericLogger
public abstract class GenericLogger
Base class for different facades to the actual logger interface.
| Field Summary | |
|---|---|
protected Map<String,Boolean> |
m_logLevels
List of allowed log levels. |
protected Object |
m_orgLogger
Reference to the actually used logger for reflective calls. |
| Constructor Summary | |
|---|---|
GenericLogger(Object originallogger)
Constructor. |
|
| Method Summary | |
|---|---|
protected boolean |
checkForLevel(String methodname)
Check in underlying logging facility with the passed method name if the logger is enabled for a particular level - or in other words, if the method in fact returns true. |
boolean |
isLogEnabled(String level)
Is the underlying logger instance enabled for the parameter level? |
abstract void |
log(String level,
String msg)
Log a message under the specified log level. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Object m_orgLogger
protected Map<String,Boolean> m_logLevels
| Constructor Detail |
|---|
public GenericLogger(Object originallogger)
originallogger - Reference to the actually used logger for reflective calls| Method Detail |
|---|
protected boolean checkForLevel(String methodname)
methodname - Name of the method to call on logging facility
public boolean isLogEnabled(String level)
level - Log level to check
public abstract void log(String level,
String msg)
level - The log level of the messagemsg - The log message
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||