org.openqa.selenium.server.log
Class LoggingManager

java.lang.Object
  extended by org.openqa.selenium.server.log.LoggingManager

public class LoggingManager
extends java.lang.Object

Configure logging to Selenium taste.


Constructor Summary
LoggingManager()
           
 
Method Summary
static org.apache.commons.logging.Log configureLogging(RemoteControlConfiguration configuration, boolean debugMode)
           
static void overrideSimpleFormatterWithTerseOneForConsoleHandler(java.util.logging.Logger logger, boolean debugMode)
           
static PerSessionLogHandler perSessionLogHandler()
          Provides a PerSessionLogHandler
protected static void resetLoggerToOriginalState()
           
protected static void restoreOriginalHandlersFormattersAndLevels(java.util.logging.Logger logger)
           
protected static void saveOriginalHandlersFormattersAndLevels(java.util.logging.Logger logger)
           
static ShortTermMemoryHandler shortTermMemoryHandler()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggingManager

public LoggingManager()
Method Detail

configureLogging

public static org.apache.commons.logging.Log configureLogging(RemoteControlConfiguration configuration,
                                                              boolean debugMode)

shortTermMemoryHandler

public static ShortTermMemoryHandler shortTermMemoryHandler()

perSessionLogHandler

public static PerSessionLogHandler perSessionLogHandler()
Provides a PerSessionLogHandler

Returns:
a PerSessionLogHandler, never null. May be a NoOpSessionLogHandler

overrideSimpleFormatterWithTerseOneForConsoleHandler

public static void overrideSimpleFormatterWithTerseOneForConsoleHandler(java.util.logging.Logger logger,
                                                                        boolean debugMode)

resetLoggerToOriginalState

protected static void resetLoggerToOriginalState()

restoreOriginalHandlersFormattersAndLevels

protected static void restoreOriginalHandlersFormattersAndLevels(java.util.logging.Logger logger)

saveOriginalHandlersFormattersAndLevels

protected static void saveOriginalHandlersFormattersAndLevels(java.util.logging.Logger logger)


Copyright © 2011. All Rights Reserved.