com.atomikos.logging
Class Log4j2Logger

java.lang.Object
  extended by com.atomikos.logging.Log4j2Logger
All Implemented Interfaces:
Logger

public class Log4j2Logger
extends Object
implements Logger


Constructor Summary
Log4j2Logger(Class<?> clazz)
           
 
Method Summary
 boolean isDebugEnabled()
           
 boolean isErrorEnabled()
           
 boolean isInfoEnabled()
           
 boolean isTraceEnabled()
           
 void logDebug(String message)
           
 void logDebug(String message, Throwable error)
           
 void logError(String message)
           
 void logError(String message, Throwable error)
           
 void logFatal(String message)
           
 void logFatal(String message, Throwable error)
           
 void logInfo(String message)
           
 void logInfo(String message, Throwable error)
           
 void logTrace(String message)
           
 void logTrace(String message, Throwable error)
           
 void logWarning(String message)
           
 void logWarning(String message, Throwable error)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Log4j2Logger

public Log4j2Logger(Class<?> clazz)
Method Detail

logError

public void logError(String message)
Specified by:
logError in interface Logger

logWarning

public void logWarning(String message)
Specified by:
logWarning in interface Logger

logInfo

public void logInfo(String message)
Specified by:
logInfo in interface Logger

logDebug

public void logDebug(String message)
Specified by:
logDebug in interface Logger

logTrace

public void logTrace(String message)
Specified by:
logTrace in interface Logger

logError

public void logError(String message,
                     Throwable error)
Specified by:
logError in interface Logger

logWarning

public void logWarning(String message,
                       Throwable error)
Specified by:
logWarning in interface Logger

logDebug

public void logDebug(String message,
                     Throwable error)
Specified by:
logDebug in interface Logger

logTrace

public void logTrace(String message,
                     Throwable error)
Specified by:
logTrace in interface Logger

isTraceEnabled

public boolean isTraceEnabled()
Specified by:
isTraceEnabled in interface Logger

isDebugEnabled

public boolean isDebugEnabled()
Specified by:
isDebugEnabled in interface Logger

isErrorEnabled

public boolean isErrorEnabled()
Specified by:
isErrorEnabled in interface Logger

logInfo

public void logInfo(String message,
                    Throwable error)
Specified by:
logInfo in interface Logger

isInfoEnabled

public boolean isInfoEnabled()
Specified by:
isInfoEnabled in interface Logger

logFatal

public void logFatal(String message)
Specified by:
logFatal in interface Logger

logFatal

public void logFatal(String message,
                     Throwable error)
Specified by:
logFatal in interface Logger


Copyright © 2016. All Rights Reserved.