com.allen_sauer.gwt.log.client
Class RemoteLoggerImpl

java.lang.Object
  extended by com.allen_sauer.gwt.log.client.NullLogger
      extended by com.allen_sauer.gwt.log.client.RemoteLogger
          extended by com.allen_sauer.gwt.log.client.RemoteLoggerImpl
All Implemented Interfaces:
Logger

public final class RemoteLoggerImpl
extends RemoteLogger

Logger which sends log records via GWT RPC to the server where it can be deobfuscated and logged.


Constructor Summary
RemoteLoggerImpl()
           
 
Method Summary
 void clear()
           
 boolean isSupported()
           
 void log(LogRecord record)
           
 void loggersLog(LogRecord record)
          Call NullLogger.log(LogRecord) on all the loggers.
 void setCurrentLogLevel(int level)
           
 
Methods inherited from class com.allen_sauer.gwt.log.client.RemoteLogger
getLogger, loggersAdd, loggersClear, loggersSetCurrentLogLevel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteLoggerImpl

public RemoteLoggerImpl()
Method Detail

clear

public void clear()
Specified by:
clear in interface Logger
Overrides:
clear in class NullLogger

isSupported

public boolean isSupported()
Specified by:
isSupported in interface Logger
Overrides:
isSupported in class NullLogger

log

public void log(LogRecord record)
Specified by:
log in interface Logger
Overrides:
log in class NullLogger

loggersLog

public void loggersLog(LogRecord record)
Description copied from class: RemoteLogger
Call NullLogger.log(LogRecord) on all the loggers. In this implementation we just pass the call to all our loggers immediately.

Overrides:
loggersLog in class RemoteLogger
Parameters:
record - the LogRecord to log.
See Also:
log(LogRecord)

setCurrentLogLevel

public void setCurrentLogLevel(int level)
Specified by:
setCurrentLogLevel in interface Logger
Overrides:
setCurrentLogLevel in class NullLogger