de.espirit.common.base
Class Logging

java.lang.Object
  extended by de.espirit.common.base.Logging

public class Logging
extends Object


Constructor Summary
Logging()
           
 
Method Summary
static Logger getLogger()
           
static MappedDiagnosticContext getMappedDiagnosticContext()
           
static void init(Logger logger)
           
static void initMDC(MappedDiagnosticContext mdc)
           
static boolean isDebugEnabled(Class<?> clazz)
           
static boolean isInfoEnabled(Class<?> logger)
           
static boolean isTraceEnabled(Class clazz)
           
static boolean isWarnEnabled(Class<?> logger)
           
static void logDebug(String message, Class<?> logger)
           
static void logDebug(String message, Throwable cause, Class<?> logger)
           
static void logError(String message, Class<?> logger)
           
static void logError(String message, Throwable cause, Class<?> logger)
           
static void logFatal(String message, Class<?> logger)
           
static void logFatal(String message, Throwable cause, Class<?> logger)
           
static void logInfo(String message, Class<?> logger)
           
static void logInfo(String message, Throwable cause, Class<?> logger)
           
static void logTrace(String message, Class clazz)
           
static void logTrace(String message, Throwable cause, Class logger)
           
static void logWarning(String message, Class<?> logger)
           
static void logWarning(String message, Throwable cause, Class<?> logger)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Logging

public Logging()
Method Detail

isTraceEnabled

public static boolean isTraceEnabled(@NotNull
                                     Class clazz)

logTrace

public static void logTrace(@NotNull
                            String message,
                            @NotNull
                            Class clazz)

logTrace

public static void logTrace(@NotNull
                            String message,
                            Throwable cause,
                            @NotNull
                            Class logger)

isDebugEnabled

public static boolean isDebugEnabled(@NotNull
                                     Class<?> clazz)

logDebug

public static void logDebug(String message,
                            Throwable cause,
                            @NotNull
                            Class<?> logger)

logDebug

public static void logDebug(String message,
                            @NotNull
                            Class<?> logger)

isInfoEnabled

public static boolean isInfoEnabled(@NotNull
                                    Class<?> logger)

logInfo

public static void logInfo(String message,
                           Throwable cause,
                           @NotNull
                           Class<?> logger)

logInfo

public static void logInfo(String message,
                           @NotNull
                           Class<?> logger)

isWarnEnabled

public static boolean isWarnEnabled(@NotNull
                                    Class<?> logger)

logWarning

public static void logWarning(String message,
                              Throwable cause,
                              @NotNull
                              Class<?> logger)

logWarning

public static void logWarning(String message,
                              @NotNull
                              Class<?> logger)

logError

public static void logError(String message,
                            Throwable cause,
                            @NotNull
                            Class<?> logger)

logError

public static void logError(String message,
                            @NotNull
                            Class<?> logger)

logFatal

public static void logFatal(@NotNull
                            String message,
                            @NotNull
                            Class<?> logger)

logFatal

public static void logFatal(@NotNull
                            String message,
                            Throwable cause,
                            @NotNull
                            Class<?> logger)

init

public static void init(@Nullable
                        Logger logger)

initMDC

public static void initMDC(MappedDiagnosticContext mdc)

getLogger

@NotNull
public static Logger getLogger()

getMappedDiagnosticContext

@NotNull
public static MappedDiagnosticContext getMappedDiagnosticContext()


Copyright © 2012 e-Spirit AG. All Rights Reserved. Build 4.2.480