|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.allen_sauer.gwt.log.client.NullLogger
com.allen_sauer.gwt.log.client.RemoteLogger
public class RemoteLogger
Fake RemoteLogger, which is used by default when the gwt-log-RemoteLogger module has not been inherited by the application.
Constructor Summary | |
---|---|
RemoteLogger()
|
Method Summary | ||
---|---|---|
|
getLogger(java.lang.Class<T> clazz)
Retrieves a previously added logger or null if the logger was not added. |
|
void |
loggersAdd(Logger logger)
Adds a logger. |
|
void |
loggersClear()
Call NullLogger.clear() on all the loggers. |
|
void |
loggersLog(LogRecord record)
Call NullLogger.log(LogRecord) on all the loggers. |
|
void |
loggersSetCurrentLogLevel(int level)
Call NullLogger.setCurrentLogLevel(int) on all the loggers. |
Methods inherited from class com.allen_sauer.gwt.log.client.NullLogger |
---|
clear, isSupported, log, setCurrentLogLevel |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RemoteLogger()
Method Detail |
---|
public final <T extends Logger> T getLogger(java.lang.Class<T> clazz)
T
- the type of logger to be retrievedclazz
- the class of the logger to retrieve
public void loggersAdd(Logger logger)
logger
- the logger to addpublic final void loggersClear()
NullLogger.clear()
on all the loggers.
public void loggersLog(LogRecord record)
NullLogger.log(LogRecord)
on all the loggers. In this implementation we just pass the call
to all our loggers immediately.
record
- the LogRecord to log.RemoteLoggerImpl.log(LogRecord)
public void loggersSetCurrentLogLevel(int level)
NullLogger.setCurrentLogLevel(int)
on all the loggers.
level
- the new log level
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |