org.jboss.logging.jdk
Class JDK14LoggerPlugin

java.lang.Object
  extended by org.jboss.logging.jdk.JDK14LoggerPlugin
All Implemented Interfaces:
org.jboss.logging.LoggerPlugin, org.jboss.logging.MDCSupport, org.jboss.logging.NDCSupport

public class JDK14LoggerPlugin
extends Object
implements org.jboss.logging.LoggerPlugin, org.jboss.logging.MDCSupport, org.jboss.logging.NDCSupport

An example LoggerPlugin which uses the JDK java.util.logging framework.

Version:
$Revison:$
Author:
Scott.Stark@jboss.org

Constructor Summary
JDK14LoggerPlugin()
           
 
Method Summary
 void debug(Object message)
           
 void debug(Object message, Throwable t)
           
 void debug(String loggerFcqn, Object message, Throwable t)
           
 void error(Object message)
           
 void error(Object message, Throwable t)
           
 void error(String loggerFcqn, Object message, Throwable t)
           
 void fatal(Object message)
           
 void fatal(Object message, Throwable t)
           
 void fatal(String loggerFcqn, Object message, Throwable t)
           
 org.jboss.logging.MDCProvider getMDCProvider()
           
 org.jboss.logging.NDCProvider getNDCProvider()
           
 void info(Object message)
           
 void info(Object message, Throwable t)
           
 void info(String loggerFcqn, Object message, Throwable t)
           
 void init(String name)
           
 boolean isDebugEnabled()
          Deprecated. 
 boolean isInfoEnabled()
          Deprecated. 
 boolean isTraceEnabled()
           
 void trace(Object message)
           
 void trace(Object message, Throwable t)
           
 void trace(String loggerFcqn, Object message, Throwable t)
           
 void warn(Object message)
           
 void warn(Object message, Throwable t)
           
 void warn(String loggerFcqn, Object message, Throwable t)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDK14LoggerPlugin

public JDK14LoggerPlugin()
Method Detail

init

public void init(String name)
Specified by:
init in interface org.jboss.logging.LoggerPlugin

isTraceEnabled

public boolean isTraceEnabled()
Specified by:
isTraceEnabled in interface org.jboss.logging.LoggerPlugin

trace

public void trace(Object message)
Specified by:
trace in interface org.jboss.logging.LoggerPlugin

trace

public void trace(Object message,
                  Throwable t)
Specified by:
trace in interface org.jboss.logging.LoggerPlugin

trace

public void trace(String loggerFcqn,
                  Object message,
                  Throwable t)
Specified by:
trace in interface org.jboss.logging.LoggerPlugin

isDebugEnabled

@Deprecated
public boolean isDebugEnabled()
Deprecated. 

Specified by:
isDebugEnabled in interface org.jboss.logging.LoggerPlugin

debug

public void debug(Object message)
Specified by:
debug in interface org.jboss.logging.LoggerPlugin

debug

public void debug(Object message,
                  Throwable t)
Specified by:
debug in interface org.jboss.logging.LoggerPlugin

debug

public void debug(String loggerFcqn,
                  Object message,
                  Throwable t)
Specified by:
debug in interface org.jboss.logging.LoggerPlugin

isInfoEnabled

@Deprecated
public boolean isInfoEnabled()
Deprecated. 

Specified by:
isInfoEnabled in interface org.jboss.logging.LoggerPlugin

info

public void info(Object message)
Specified by:
info in interface org.jboss.logging.LoggerPlugin

info

public void info(Object message,
                 Throwable t)
Specified by:
info in interface org.jboss.logging.LoggerPlugin

info

public void info(String loggerFcqn,
                 Object message,
                 Throwable t)
Specified by:
info in interface org.jboss.logging.LoggerPlugin

warn

public void warn(Object message)
Specified by:
warn in interface org.jboss.logging.LoggerPlugin

warn

public void warn(Object message,
                 Throwable t)
Specified by:
warn in interface org.jboss.logging.LoggerPlugin

warn

public void warn(String loggerFcqn,
                 Object message,
                 Throwable t)
Specified by:
warn in interface org.jboss.logging.LoggerPlugin

error

public void error(Object message)
Specified by:
error in interface org.jboss.logging.LoggerPlugin

error

public void error(Object message,
                  Throwable t)
Specified by:
error in interface org.jboss.logging.LoggerPlugin

error

public void error(String loggerFcqn,
                  Object message,
                  Throwable t)
Specified by:
error in interface org.jboss.logging.LoggerPlugin

fatal

public void fatal(Object message)
Specified by:
fatal in interface org.jboss.logging.LoggerPlugin

fatal

public void fatal(Object message,
                  Throwable t)
Specified by:
fatal in interface org.jboss.logging.LoggerPlugin

fatal

public void fatal(String loggerFcqn,
                  Object message,
                  Throwable t)
Specified by:
fatal in interface org.jboss.logging.LoggerPlugin

getNDCProvider

public org.jboss.logging.NDCProvider getNDCProvider()
Specified by:
getNDCProvider in interface org.jboss.logging.NDCSupport

getMDCProvider

public org.jboss.logging.MDCProvider getMDCProvider()
Specified by:
getMDCProvider in interface org.jboss.logging.MDCSupport


Copyright © 2009 JBoss Inc.. All Rights Reserved.