Class RequestFactoryLogHandler
java.lang.Object
java.util.logging.Handler
com.google.gwt.logging.client.RemoteLogHandlerBase
com.google.web.bindery.requestfactory.gwt.client.RequestFactoryLogHandler
A Handler that does remote logging for applications using RequestFactory.
To use this in a project with jakarta.servlet
, a copy will need to be made,
referencing com.google.web.bindery.requestfactory.shared.jakarta.LoggingRequest
instead of the non-jakarta
LoggingFactory that this was originally written for.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Provides a logging request. -
Field Summary
Fields inherited from class com.google.gwt.logging.client.RemoteLogHandlerBase
WIRE_LOGGER_NAME, wireLogger
-
Constructor Summary
ConstructorDescriptionRequestFactoryLogHandler
(RequestFactoryLogHandler.LoggingRequestProvider requestProvider, Level level, List<String> ignoredLoggerNames) Since records from this handler go accross the wire, it should only be used for important messages, and it's Level will often be higher than the Level being used app-wide. -
Method Summary
Methods inherited from class com.google.gwt.logging.client.RemoteLogHandlerBase
close, flush, isLoggable
Methods inherited from class java.util.logging.Handler
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, reportError, setEncoding, setErrorManager, setFilter, setFormatter, setLevel
-
Constructor Details
-
RequestFactoryLogHandler
public RequestFactoryLogHandler(RequestFactoryLogHandler.LoggingRequestProvider requestProvider, Level level, List<String> ignoredLoggerNames) Since records from this handler go accross the wire, it should only be used for important messages, and it's Level will often be higher than the Level being used app-wide. This handler also takes string which it will use to exclude the messages from some loggers. This usually includes the name of the logger(s) which will be used to log acknowledgements of activity going accross the wire. If we did not exclude these loggers, an infinite loop would occur.- Parameters:
requestProvider
- aRequestFactoryLogHandler.LoggingRequestProvider
instancelevel
- a loggingLevel
ignoredLoggerNames
- a List of Strings
-
-
Method Details