@Immutable public final class LogHelper extends Object
IErrorLevel enum in
this package with SLF4J logger.| Modifier and Type | Method and Description |
|---|---|
static boolean |
isEnabled(Class<?> aLoggingClass,
IErrorLevel eErrorLevel)
Check if logging is enabled for the passed class based on the error level
provided
|
static boolean |
isEnabled(Class<?> aLoggingClass,
IHasErrorLevel aErrorLevelProvider)
Check if logging is enabled for the passed class based on the error level
provider by the passed object
|
static boolean |
isEnabled(org.slf4j.Logger aLogger,
IErrorLevel eErrorLevel)
Check if logging is enabled for the passed logger based on the error level
provided
|
static boolean |
isEnabled(org.slf4j.Logger aLogger,
IHasErrorLevel aErrorLevelProvider)
Check if logging is enabled for the passed logger based on the error level
provider by the passed object
|
static void |
log(Class<?> aLoggingClass,
IErrorLevel aErrorLevel,
String sMsg) |
static void |
log(Class<?> aLoggingClass,
IErrorLevel eErrorLevel,
String sMsg,
Throwable t) |
static void |
log(Class<?> aLoggingClass,
IHasErrorLevel aErrorLevelProvider,
String sMsg) |
static void |
log(Class<?> aLoggingClass,
IHasErrorLevel aErrorLevelProvider,
String sMsg,
Throwable t) |
static void |
log(org.slf4j.Logger aLogger,
IErrorLevel eErrorLevel,
String sMsg) |
static void |
log(org.slf4j.Logger aLogger,
IErrorLevel eErrorLevel,
String sMsg,
Throwable t) |
static void |
log(org.slf4j.Logger aLogger,
IHasErrorLevel aErrorLevelProvider,
String sMsg) |
static void |
log(org.slf4j.Logger aLogger,
IHasErrorLevel aErrorLevelProvider,
String sMsg,
Throwable t) |
public static boolean isEnabled(@Nonnull Class<?> aLoggingClass, @Nonnull IHasErrorLevel aErrorLevelProvider)
aLoggingClass - The class to determine the logger from. May not be null
.aErrorLevelProvider - The error level provider. May not be null.true if the respective log level is allowed,
false if notpublic static boolean isEnabled(@Nonnull org.slf4j.Logger aLogger, @Nonnull IHasErrorLevel aErrorLevelProvider)
aLogger - The logger. May not be null.aErrorLevelProvider - The error level provider. May not be null.true if the respective log level is allowed,
false if notpublic static boolean isEnabled(@Nonnull Class<?> aLoggingClass, @Nonnull IErrorLevel eErrorLevel)
aLoggingClass - The class to determine the logger from. May not be null
.eErrorLevel - The error level. May not be null.true if the respective log level is allowed,
false if notpublic static boolean isEnabled(@Nonnull org.slf4j.Logger aLogger, @Nonnull IErrorLevel eErrorLevel)
aLogger - The logger. May not be null.eErrorLevel - The error level. May not be null.true if the respective log level is allowed,
false if notpublic static void log(@Nonnull Class<?> aLoggingClass, @Nonnull IHasErrorLevel aErrorLevelProvider, @Nonnull String sMsg)
public static void log(@Nonnull Class<?> aLoggingClass, @Nonnull IHasErrorLevel aErrorLevelProvider, @Nonnull String sMsg, @Nullable Throwable t)
public static void log(@Nonnull org.slf4j.Logger aLogger, @Nonnull IHasErrorLevel aErrorLevelProvider, @Nonnull String sMsg)
public static void log(@Nonnull org.slf4j.Logger aLogger, @Nonnull IHasErrorLevel aErrorLevelProvider, @Nonnull String sMsg, @Nullable Throwable t)
public static void log(@Nonnull Class<?> aLoggingClass, @Nonnull IErrorLevel aErrorLevel, @Nonnull String sMsg)
public static void log(@Nonnull Class<?> aLoggingClass, @Nonnull IErrorLevel eErrorLevel, @Nonnull String sMsg, @Nullable Throwable t)
public static void log(@Nonnull org.slf4j.Logger aLogger, @Nonnull IErrorLevel eErrorLevel, @Nonnull String sMsg)
Copyright © 2014–2015 Philip Helger. All rights reserved.