| java.lang.Object com.google.gwt.dev.util.log.ThreadLocalTreeLoggerProxy
ThreadLocalTreeLoggerProxy | final public class ThreadLocalTreeLoggerProxy implements TreeLogger(Code) | | An internal implementation support class that creates a
com.google.gwt.server.internal.TreeLogger that wraps another
TreeLogger to allow for the underlying logger to be redirected per thread. It
can be useful for situations where it is not practical to pass in a logger as
a parameter, such as when interfacing with third-party classes.
|
Method Summary | |
public TreeLogger | branch(Type type, String msg, Throwable caught) Delegates the branch to the thread-local logger if one is present. | public boolean | isLoggable(Type type) Delegates the check to the thread-local logger if one is present. | public void | log(Type type, String msg, Throwable caught) Delegates the log to the thread-local logger if one is present. | public void | pop(TreeLogger oldLogger) | public TreeLogger | push(TreeLogger logger) Sets the logger to which calls are redirected for the current thread. |
ThreadLocalTreeLoggerProxy | public ThreadLocalTreeLoggerProxy()(Code) | | |
ThreadLocalTreeLoggerProxy | public ThreadLocalTreeLoggerProxy(TreeLogger logger)(Code) | | |
branch | public TreeLogger branch(Type type, String msg, Throwable caught)(Code) | | Delegates the branch to the thread-local logger if one is present.
Otherwise, the log entry is discarded and this is returned.
|
isLoggable | public boolean isLoggable(Type type)(Code) | | Delegates the check to the thread-local logger if one is present.
relays the return value of the wrapped logger if one exists, orreturns false otherwise |
log | public void log(Type type, String msg, Throwable caught)(Code) | | Delegates the log to the thread-local logger if one is present. Otherwise,
the log entry is discarded.
|
|
|