Class Log
java.lang.Object
org.identityconnectors.common.logging.Log
Yet another logging abstraction.
-
Nested Class Summary
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
protected StackTraceElement
extract
(StackTraceElement[] steArray, Collection<String> frameworkPackageList) static Log
Get the logger for the particular class.void
void
boolean
isError()
boolean
isInfo()
protected boolean
isInFrameworkPackageList
(String currentClass, Collection<String> frameworkPackageList) boolean
isLoggable
(Log.Level level) Determine if its log-able at this level within this class.boolean
isOk()
boolean
void
Lowest level logging method.void
Logs based on the parameters given.protected void
log
(Log.Level level, Throwable ex, String message, StackTraceElement[] locations) void
void
void
void
-
Field Details
-
LOGSPI_PROP
System property to set the logger class that is most appropriate. -
LOGSPI_PROPS_FILE
Filename 'connectors.properties' used to for SPI class in the '$(java.home)/lib/' directory.- See Also:
-
-
Method Details
-
getLog
Get the logger for the particular class.private static final Log LOG = Log.getLog(MyClass.class);
- Parameters:
clazz
- class to log information about.- Returns:
- logger to use for logging.
-
isLoggable
Determine if its log-able at this level within this class. -
log
Lowest level logging method.- Parameters:
clazz
- Class that is being logged.method
- Method name that is being logged.level
- Logging level.message
- Message about the log.ex
- Exception to use process.
-
log
Logs based on the parameters given. Uses the format parameter insideMessageFormat
.- Parameters:
level
- the logging level at which to write the message.ex
- [optional] exception stack trace to log.format
- [optional] create a message of a particular format.args
- [optional] parameters to the format string.
-
log
-
extract
protected StackTraceElement extract(StackTraceElement[] steArray, Collection<String> frameworkPackageList) -
isInFrameworkPackageList
protected boolean isInFrameworkPackageList(String currentClass, Collection<String> frameworkPackageList) -
ok
-
info
-
warn
-
error
-
ok
-
info
-
warn
-
error
-
isOk
public boolean isOk() -
isInfo
public boolean isInfo() -
isWarning
public boolean isWarning() -
isError
public boolean isError()
-