org.jboss.test.logging
Class LoggingPlugin

java.lang.Object
  extended by org.jboss.test.logging.LoggingPlugin
Direct Known Subclasses:
JDKConsoleLoggingPlugin, Log4jConsoleLoggingPlugin, Log4jLoggingPlugin

public abstract class LoggingPlugin
extends Object

A LoggingPlugin.

Version:
$Revision: 59261 $
Author:
Adrian Brock

Constructor Summary
LoggingPlugin()
           
 
Method Summary
 void enableTrace(String name)
          Enable trace for a logger category
static LoggingPlugin getInstance()
          Get the logging plugin.
 void setUp()
          Setup the logging
 void tearDown()
          Teardown the logging
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggingPlugin

public LoggingPlugin()
Method Detail

getInstance

public static LoggingPlugin getInstance()
                                 throws Exception
Get the logging plugin. This looks at the system property org.jboss.test.logging.LogginPlugin, and if this is not defined, org.jboss.test.logging.Log4jLoggingPlugin is used. Another useful default is org.jboss.test.logging.Log4jConsoleLoggingPlugin, a plugin that simply configures a console appender.

Returns:
the logging plugin
Throws:
Exception - for any error
See Also:
Log4jLoggingPlugin, Log4jConsoleLoggingPlugin

setUp

public void setUp()
           throws Exception
Setup the logging

Throws:
Exception - for any error

tearDown

public void tearDown()
              throws Exception
Teardown the logging

Throws:
Exception - for any error

enableTrace

public void enableTrace(String name)
Enable trace for a logger category

Parameters:
name - the name of the category


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.