@Immutable public final class LogUtils extends Object
EErrorLevel enum in
this package with SLF4J logger.| Modifier and Type | Method and Description |
|---|---|
static boolean |
isEnabled(Class<?> aLoggingClass,
EErrorLevel 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,
EErrorLevel 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,
EErrorLevel eErrorLevel,
String sMsg) |
static void |
log(Class<?> aLoggingClass,
EErrorLevel 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,
EErrorLevel eErrorLevel,
String sMsg) |
static void |
log(org.slf4j.Logger aLogger,
EErrorLevel 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 EErrorLevel 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 EErrorLevel 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 EErrorLevel eErrorLevel, @Nonnull String sMsg)
public static void log(@Nonnull Class<?> aLoggingClass, @Nonnull EErrorLevel eErrorLevel, @Nonnull String sMsg, @Nullable Throwable t)
public static void log(@Nonnull org.slf4j.Logger aLogger, @Nonnull EErrorLevel eErrorLevel, @Nonnull String sMsg)
Copyright © 2006–2014 phloc systems. All rights reserved.