org.pfsw.logbind.jbl
Class JBossLoggerAdapter

java.lang.Object
  extended by org.pfsw.logbind.jbl.JBossLoggerAdapter
All Implemented Interfaces:
org.pfsw.logging.Logger

public class JBossLoggerAdapter
extends java.lang.Object
implements org.pfsw.logging.Logger

This adapter implements the PF Logger interface and routes all logging to a JBoss logger.


Field Summary
 
Fields inherited from interface org.pfsw.logging.Logger
ANONYMOUS_LOGGER_NAME, LL_DEBUG, LL_ERROR, LL_INFO, LL_NONE, LL_WARNING
 
Constructor Summary
JBossLoggerAdapter(java.lang.Class<?> clazz)
           
JBossLoggerAdapter(java.lang.String loggerName)
           
 
Method Summary
protected  org.jboss.logging.Logger getDelegateLogger()
           
protected  java.lang.String getLogMessage(java.lang.String text, java.lang.Object... params)
           
 java.lang.String getName()
           
 void initialize(java.util.Properties properties)
           
 boolean isLoggingDebugs()
           
 boolean isLoggingErrors()
           
 boolean isLoggingInfos()
           
 boolean isLoggingWarnings()
           
 void logDebug(java.lang.String message, java.lang.Object... params)
           
 void logError(java.lang.String message, java.lang.Object... params)
           
 void logError(java.lang.String message, java.lang.Throwable exception)
           
 void logException(java.lang.Throwable ex)
           
 void logInfo(java.lang.String message, java.lang.Object... params)
           
 void logWarning(java.lang.String message, java.lang.Object... params)
           
 void logWarning(java.lang.String message, java.lang.Throwable exception)
           
 boolean setLogLevel(java.lang.String level)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JBossLoggerAdapter

public JBossLoggerAdapter(java.lang.String loggerName)

JBossLoggerAdapter

public JBossLoggerAdapter(java.lang.Class<?> clazz)
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface org.pfsw.logging.Logger

logException

public void logException(java.lang.Throwable ex)
Specified by:
logException in interface org.pfsw.logging.Logger

logDebug

public void logDebug(java.lang.String message,
                     java.lang.Object... params)
Specified by:
logDebug in interface org.pfsw.logging.Logger

logInfo

public void logInfo(java.lang.String message,
                    java.lang.Object... params)
Specified by:
logInfo in interface org.pfsw.logging.Logger

logWarning

public void logWarning(java.lang.String message,
                       java.lang.Object... params)
Specified by:
logWarning in interface org.pfsw.logging.Logger

logError

public void logError(java.lang.String message,
                     java.lang.Object... params)
Specified by:
logError in interface org.pfsw.logging.Logger

logWarning

public void logWarning(java.lang.String message,
                       java.lang.Throwable exception)
Specified by:
logWarning in interface org.pfsw.logging.Logger

logError

public void logError(java.lang.String message,
                     java.lang.Throwable exception)
Specified by:
logError in interface org.pfsw.logging.Logger

isLoggingDebugs

public boolean isLoggingDebugs()
Specified by:
isLoggingDebugs in interface org.pfsw.logging.Logger

isLoggingInfos

public boolean isLoggingInfos()
Specified by:
isLoggingInfos in interface org.pfsw.logging.Logger

isLoggingWarnings

public boolean isLoggingWarnings()
Specified by:
isLoggingWarnings in interface org.pfsw.logging.Logger

isLoggingErrors

public boolean isLoggingErrors()
Specified by:
isLoggingErrors in interface org.pfsw.logging.Logger

initialize

public void initialize(java.util.Properties properties)
Specified by:
initialize in interface org.pfsw.logging.Logger

setLogLevel

public boolean setLogLevel(java.lang.String level)
Specified by:
setLogLevel in interface org.pfsw.logging.Logger

getLogMessage

protected java.lang.String getLogMessage(java.lang.String text,
                                         java.lang.Object... params)

getDelegateLogger

protected org.jboss.logging.Logger getDelegateLogger()