org.jboss.errai.common.client.logging
Class LoggingHandlerConfigurator
java.lang.Object
org.jboss.errai.common.client.logging.LoggingHandlerConfigurator
- All Implemented Interfaces:
- com.google.gwt.core.client.EntryPoint
public class LoggingHandlerConfigurator
- extends Object
- implements com.google.gwt.core.client.EntryPoint
Initializes Errai log handlers, which are:
By default these handlers use the ErraiSimpleFormatter
to format
output.
- Author:
- Max Barkley
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LoggingHandlerConfigurator
public LoggingHandlerConfigurator()
onModuleLoad
public void onModuleLoad()
- Specified by:
onModuleLoad
in interface com.google.gwt.core.client.EntryPoint
get
public static LoggingHandlerConfigurator get()
- Returns:
- The single instance of
LoggingHandlerConfigurator
.
getHandler
public <H extends ErraiLogHandler> H getHandler(Class<H> handlerType)
- Get the top-level Errai log handlers. This could be useful if you wish to
change the
Level
or Formatter
of a handler.
- Parameters:
handlerType
- The type of an ErraiLogHandler
.
- Returns:
- The active
Handler
of the requested type.
Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.