Class CommonsLog
- java.lang.Object
-
- com.amazonaws.log.CommonsLog
-
- All Implemented Interfaces:
InternalLogApi
public class CommonsLog extends Object implements InternalLogApi
Used to delegate internal logging of the signers and core classes to Jakarta Commons Logging.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddebug(Object message)Logs a message with debug log level.voiddebug(Object message, Throwable t)Logs an error with debug log level.voiderror(Object message)Logs a message with error log level.voiderror(Object message, Throwable t)Logs an error with error log level.voidfatal(Object message)Logs a message with fatal log level.voidfatal(Object message, Throwable t)Logs an error with fatal log level.voidinfo(Object message)Logs a message with info log level.voidinfo(Object message, Throwable t)Logs an error with info log level.booleanisDebugEnabled()Is debug logging currently enabled?booleanisErrorEnabled()Is error logging currently enabled?booleanisFatalEnabled()Is fatal logging currently enabled?booleanisInfoEnabled()Is info logging currently enabled?booleanisTraceEnabled()Is trace logging currently enabled?booleanisWarnEnabled()Is warn logging currently enabled?voidtrace(Object message)Logs a message with trace log level.voidtrace(Object message, Throwable t)Logs an error with trace log level.voidwarn(Object message)Logs a message with warn log level.voidwarn(Object message, Throwable t)Logs an error with warn log level.
-
-
-
Method Detail
-
debug
public void debug(Object message)
Description copied from interface:InternalLogApiLogs a message with debug log level.- Specified by:
debugin interfaceInternalLogApi- Parameters:
message- log this message
-
debug
public void debug(Object message, Throwable t)
Description copied from interface:InternalLogApiLogs an error with debug log level.- Specified by:
debugin interfaceInternalLogApi- Parameters:
message- log this messaget- log this cause
-
error
public void error(Object message)
Description copied from interface:InternalLogApiLogs a message with error log level.- Specified by:
errorin interfaceInternalLogApi- Parameters:
message- log this message
-
error
public void error(Object message, Throwable t)
Description copied from interface:InternalLogApiLogs an error with error log level.- Specified by:
errorin interfaceInternalLogApi- Parameters:
message- log this messaget- log this cause
-
fatal
public void fatal(Object message)
Description copied from interface:InternalLogApiLogs a message with fatal log level.- Specified by:
fatalin interfaceInternalLogApi- Parameters:
message- log this message
-
fatal
public void fatal(Object message, Throwable t)
Description copied from interface:InternalLogApiLogs an error with fatal log level.- Specified by:
fatalin interfaceInternalLogApi- Parameters:
message- log this messaget- log this cause
-
info
public void info(Object message)
Description copied from interface:InternalLogApiLogs a message with info log level.- Specified by:
infoin interfaceInternalLogApi- Parameters:
message- log this message
-
info
public void info(Object message, Throwable t)
Description copied from interface:InternalLogApiLogs an error with info log level.- Specified by:
infoin interfaceInternalLogApi- Parameters:
message- log this messaget- log this cause
-
isDebugEnabled
public boolean isDebugEnabled()
Description copied from interface:InternalLogApiIs debug logging currently enabled?Call this method to prevent having to perform expensive operations (for example,
Stringconcatenation) when the log level is more than debug.- Specified by:
isDebugEnabledin interfaceInternalLogApi- Returns:
- true if debug is enabled in the underlying logger.
-
isErrorEnabled
public boolean isErrorEnabled()
Description copied from interface:InternalLogApiIs error logging currently enabled?Call this method to prevent having to perform expensive operations (for example,
Stringconcatenation) when the log level is more than error.- Specified by:
isErrorEnabledin interfaceInternalLogApi- Returns:
- true if error is enabled in the underlying logger.
-
isFatalEnabled
public boolean isFatalEnabled()
Description copied from interface:InternalLogApiIs fatal logging currently enabled?Call this method to prevent having to perform expensive operations (for example,
Stringconcatenation) when the log level is more than fatal.- Specified by:
isFatalEnabledin interfaceInternalLogApi- Returns:
- true if fatal is enabled in the underlying logger.
-
isInfoEnabled
public boolean isInfoEnabled()
Description copied from interface:InternalLogApiIs info logging currently enabled?Call this method to prevent having to perform expensive operations (for example,
Stringconcatenation) when the log level is more than info.- Specified by:
isInfoEnabledin interfaceInternalLogApi- Returns:
- true if info is enabled in the underlying logger.
-
isTraceEnabled
public boolean isTraceEnabled()
Description copied from interface:InternalLogApiIs trace logging currently enabled?Call this method to prevent having to perform expensive operations (for example,
Stringconcatenation) when the log level is more than trace.- Specified by:
isTraceEnabledin interfaceInternalLogApi- Returns:
- true if trace is enabled in the underlying logger.
-
isWarnEnabled
public boolean isWarnEnabled()
Description copied from interface:InternalLogApiIs warn logging currently enabled?Call this method to prevent having to perform expensive operations (for example,
Stringconcatenation) when the log level is more than warn.- Specified by:
isWarnEnabledin interfaceInternalLogApi- Returns:
- true if warn is enabled in the underlying logger.
-
trace
public void trace(Object message)
Description copied from interface:InternalLogApiLogs a message with trace log level.- Specified by:
tracein interfaceInternalLogApi- Parameters:
message- log this message
-
trace
public void trace(Object message, Throwable t)
Description copied from interface:InternalLogApiLogs an error with trace log level.- Specified by:
tracein interfaceInternalLogApi- Parameters:
message- log this messaget- log this cause
-
warn
public void warn(Object message)
Description copied from interface:InternalLogApiLogs a message with warn log level.- Specified by:
warnin interfaceInternalLogApi- Parameters:
message- log this message
-
warn
public void warn(Object message, Throwable t)
Description copied from interface:InternalLogApiLogs an error with warn log level.- Specified by:
warnin interfaceInternalLogApi- Parameters:
message- log this messaget- log this cause
-
-