Class Log
- java.lang.Object
 - 
- org.identityconnectors.common.logging.Log
 
 
- 
public final class Log extends java.lang.ObjectYet another logging abstraction. 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLog.LevelBasic logging levels. 
- 
Field Summary
Fields Modifier and Type Field Description static java.lang.StringLOGSPI_PROPSystem property to set the logger class that is most appropriate.static java.lang.StringLOGSPI_PROPS_FILEFilename 'connectors.properties' used to for SPI class in the '$(java.home)/lib/' directory. 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiderror(java.lang.String format, java.lang.Object... args)voiderror(java.lang.Throwable ex, java.lang.String format, java.lang.Object... args)static LoggetLog(java.lang.Class<?> clazz)Get the logger for the particular class.static LoggetLog(java.lang.Class<?> clazz, java.lang.String instanceName)Get the logger for the particular class.voidinfo(java.lang.String format, java.lang.Object... args)voidinfo(java.lang.Throwable ex, java.lang.String format, java.lang.Object... args)booleanisError()booleanisInfo()booleanisLoggable(Log.Level level)Determine if its log-able at this level within this class.booleanisOk()booleanisWarning()voidlog(java.lang.Class<?> clazz, java.lang.String method, Log.Level level, java.lang.String message, java.lang.Throwable ex)Lowest level logging method.voidlog(Log.Level level, java.lang.Throwable ex, java.lang.String format, java.lang.Object... args)Logs based on the parameters given.voidok(java.lang.String format, java.lang.Object... args)voidok(java.lang.Throwable ex, java.lang.String format, java.lang.Object... args)voidwarn(java.lang.String format, java.lang.Object... args)voidwarn(java.lang.Throwable ex, java.lang.String format, java.lang.Object... args) 
 - 
 
- 
- 
Field Detail
- 
LOGSPI_PROP
public static final java.lang.String LOGSPI_PROP
System property to set the logger class that is most appropriate. 
- 
LOGSPI_PROPS_FILE
public static final java.lang.String LOGSPI_PROPS_FILE
Filename 'connectors.properties' used to for SPI class in the '$(java.home)/lib/' directory.- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Method Detail
- 
getLog
public static Log getLog(java.lang.Class<?> clazz)
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.
 
 
- 
getLog
public static Log getLog(java.lang.Class<?> clazz, java.lang.String instanceName)
Get the logger for the particular class.private static final Log LOG = Log.getLog(MyClass.class, instanceName);- Parameters:
 clazz- class to log information about.instanceName- name of the instance to expose in the log.- Returns:
 - logger to use for logging.
 
 
- 
isLoggable
public boolean isLoggable(Log.Level level)
Determine if its log-able at this level within this class. 
- 
log
public void log(java.lang.Class<?> clazz, java.lang.String method, Log.Level level, java.lang.String message, java.lang.Throwable ex)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
public void log(Log.Level level, java.lang.Throwable ex, java.lang.String format, java.lang.Object... args)
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.
 
- 
ok
public void ok(java.lang.Throwable ex, java.lang.String format, java.lang.Object... args) 
- 
info
public void info(java.lang.Throwable ex, java.lang.String format, java.lang.Object... args) 
- 
warn
public void warn(java.lang.Throwable ex, java.lang.String format, java.lang.Object... args) 
- 
error
public void error(java.lang.Throwable ex, java.lang.String format, java.lang.Object... args) 
- 
ok
public void ok(java.lang.String format, java.lang.Object... args) 
- 
info
public void info(java.lang.String format, java.lang.Object... args) 
- 
warn
public void warn(java.lang.String format, java.lang.Object... args) 
- 
error
public void error(java.lang.String format, java.lang.Object... args) 
- 
isOk
public boolean isOk()
 
- 
isInfo
public boolean isInfo()
 
- 
isWarning
public boolean isWarning()
 
- 
isError
public boolean isError()
 
 - 
 
 -