Errai 3.0.1-SNAPSHOT

org.jboss.errai.common.client.logging
Class LoggingHandlerConfigurator

java.lang.Object
  extended by 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

Constructor Summary
LoggingHandlerConfigurator()
           
 
Method Summary
static LoggingHandlerConfigurator get()
           
<H extends ErraiLogHandler>
H
getHandler(Class<H> handlerType)
          Get the top-level Errai log handlers.
 void onModuleLoad()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggingHandlerConfigurator

public LoggingHandlerConfigurator()
Method Detail

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.

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.