Package org.infinispan.commons.logging
Interface Log
-
- All Superinterfaces:
org.jboss.logging.BasicLogger
- All Known Implementing Classes:
Log_$logger
@MessageLogger(projectCode="ISPN") public interface Log extends org.jboss.logging.BasicLoggerInfinispan's log abstraction layer on top of JBoss Logging. It contains explicit methods for all INFO or above levels so that they can be internationalized. For the commons module, message ids ranging from 0901 to 1000 inclusively have been reserved.Log log = LogFactory.getLog( getClass() );The above will get you an instance of Log, which can be used to generate log messages either via JBoss Logging which then can delegate to Log4J (if the libraries are present) or (if not) the built-in JDK logger. In addition to the 6 log levels available, this framework also supports parameter interpolation, similar to the JDKsString.format(String, Object...)method. What this means is, that the following block:if (log.isTraceEnabled()) { log.trace("This is a message " + message + " and some other value is " + value); }... could be replaced with ...if (log.isTraceEnabled()) log.tracef("This is a message %s and some other value is %s", message, value);This greatly enhances code readability. If you are passing a Throwable, note that this should be passed in before the vararg parameter list.- Since:
- 4.0
- Author:
- Manik Surtani
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidafterCompletionFailed(java.lang.String synchronization, java.lang.Throwable t)java.lang.IllegalArgumentExceptionattributeSetDuplicateAttribute(java.lang.String name, java.lang.String setName)voidbeforeCompletionFailed(java.lang.String synchronization, java.lang.Throwable t)EncodingExceptioncannotDecodeFormURLContent(java.lang.Object content)java.io.IOExceptioncannotFindResource(java.lang.String fileName)CacheExceptionclassNotInWhitelist(java.lang.String className)EncodingExceptionconversionNotSupported(java.lang.Object content, java.lang.String fromMediaType, java.lang.String toMediaType)voidcouldNotRegisterObjectName(javax.management.ObjectName objectName, javax.management.InstanceAlreadyExistsException e)CounterOutOfBoundsExceptioncounterOurOfBounds(java.lang.String bound)voiderrorCommittingTx(java.lang.Throwable e)EncodingExceptionerrorEncoding(java.lang.Object content, MediaType mediaType)voiderrorEnlistingResource(java.lang.Throwable e)voiderrorRollingBack(java.lang.Throwable e)CacheConfigurationExceptionfeatureDisabled(java.lang.String feature)voidignoringException(java.lang.String methodName, java.lang.String exceptionName, java.lang.Throwable t)CacheConfigurationExceptionillegalValueThreadPoolParameter(java.lang.String parameter, java.lang.String requirement)EncodingExceptioninvalidCharMediaType(char character, java.lang.String token)CounterExceptioninvalidCounterType(java.lang.String expected, java.lang.String actual)CounterExceptioninvalidCounterTypeEncoded()EncodingExceptioninvalidMediaType(java.lang.String expected, java.lang.String actual)EncodingExceptioninvalidMediaTypeParam(java.lang.String param)EncodingExceptioninvalidMediaTypeSubtype()EncodingExceptioninvalidTextContent(java.lang.Object content)EncodingExceptioninvalidWeight(java.lang.Object weight)EncodingExceptionmissingMediaType()CacheConfigurationExceptionmultipleConfigurationValidationErrors()java.lang.IllegalArgumentExceptionnoAttributeCopierForType(java.lang.Class<?> klass)java.lang.SecurityExceptionnoSuchAliasInKeyStore(java.lang.String keyAlias, java.lang.String keyStoreFileName)java.lang.IllegalArgumentExceptionnoSuchAttribute(java.lang.String name, java.lang.String setName)voidpropertyCouldNotBeReplaced(java.lang.String line)java.lang.IllegalStateExceptionprotectedAttributeSet(java.lang.String name)CacheConfigurationExceptionsslInitializationException(java.lang.Throwable e)voidunableToConvertStringPropertyToBoolean(java.lang.String value, boolean defaultValue)voidunableToConvertStringPropertyToEnum(java.lang.String value, java.lang.String defaultValue)voidunableToConvertStringPropertyToInt(java.lang.String value, int defaultValue)voidunableToConvertStringPropertyToLong(java.lang.String value, long defaultValue)voidunableToLoadClass(java.lang.String classname, java.lang.String classloaders, java.lang.Throwable cause)java.lang.UnsupportedOperationExceptionunableToLoadFileUsingScheme(java.lang.String scheme)java.lang.IllegalArgumentExceptionunableToUnwrap(java.lang.Object o, java.lang.Class<?> clazz)java.lang.IllegalArgumentExceptionunableToUnwrapAny(java.lang.String objs, java.lang.Class<?> clazz)CounterExceptionundefinedCounter(java.lang.String name)voidunexpectedErrorFromResourceManager(java.lang.Throwable t)java.lang.IllegalStateExceptionunprotectedAttributeSet(java.lang.String name)EncodingExceptionunquotedMediaTypeParam()EncodingExceptionunsupportedContent(java.lang.Object content)voidxaResourceEndFailed(java.lang.String xaResource, java.lang.Throwable t)-
Methods inherited from interface org.jboss.logging.BasicLogger
debug, debug, debug, debug, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugv, debugv, debugv, debugv, debugv, debugv, debugv, debugv, error, error, error, error, errorf, errorf, errorf, errorf, errorf, errorf, errorf, errorf, errorv, errorv, errorv, errorv, errorv, errorv, errorv, errorv, fatal, fatal, fatal, fatal, fatalf, fatalf, fatalf, fatalf, fatalf, fatalf, fatalf, fatalf, fatalv, fatalv, fatalv, fatalv, fatalv, fatalv, fatalv, fatalv, info, info, info, info, infof, infof, infof, infof, infof, infof, infof, infof, infov, infov, infov, infov, infov, infov, infov, infov, isDebugEnabled, isEnabled, isInfoEnabled, isTraceEnabled, log, log, log, log, logf, logf, logf, logf, logf, logf, logf, logf, logf, logf, logf, logf, logv, logv, logv, logv, logv, logv, logv, logv, logv, logv, logv, logv, trace, trace, trace, trace, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracev, tracev, tracev, tracev, tracev, tracev, tracev, tracev, warn, warn, warn, warn, warnf, warnf, warnf, warnf, warnf, warnf, warnf, warnf, warnv, warnv, warnv, warnv, warnv, warnv, warnv, warnv
-
-
-
-
Method Detail
-
propertyCouldNotBeReplaced
@LogMessage(level=WARN) @Message(value="Property %s could not be replaced as intended!", id=901) void propertyCouldNotBeReplaced(java.lang.String line)
-
ignoringException
@LogMessage(level=WARN) @Message(value="Invocation of %s threw an exception %s. Exception is ignored.", id=902) void ignoringException(java.lang.String methodName, java.lang.String exceptionName, @Cause java.lang.Throwable t)
-
sslInitializationException
@Message(value="Error while initializing SSL context", id=904) CacheConfigurationException sslInitializationException(@Cause java.lang.Throwable e)
-
unableToLoadClass
@LogMessage(level=ERROR) @Message(value="Unable to load %s from any of the following classloaders: %s", id=905) void unableToLoadClass(java.lang.String classname, java.lang.String classloaders, @Cause java.lang.Throwable cause)
-
unableToConvertStringPropertyToInt
@LogMessage(level=WARN) @Message(value="Unable to convert string property [%s] to an int! Using default value of %d", id=906) void unableToConvertStringPropertyToInt(java.lang.String value, int defaultValue)
-
unableToConvertStringPropertyToLong
@LogMessage(level=WARN) @Message(value="Unable to convert string property [%s] to a long! Using default value of %d", id=907) void unableToConvertStringPropertyToLong(java.lang.String value, long defaultValue)
-
unableToConvertStringPropertyToBoolean
@LogMessage(level=WARN) @Message(value="Unable to convert string property [%s] to a boolean! Using default value of %b", id=908) void unableToConvertStringPropertyToBoolean(java.lang.String value, boolean defaultValue)
-
unableToUnwrap
@Message(value="Unwrapping %s to a type of %s is not a supported", id=909) java.lang.IllegalArgumentException unableToUnwrap(java.lang.Object o, java.lang.Class<?> clazz)
-
illegalValueThreadPoolParameter
@Message(value="Illegal value for thread pool parameter(s) %s, it should be: %s", id=910) CacheConfigurationException illegalValueThreadPoolParameter(java.lang.String parameter, java.lang.String requirement)
-
unableToUnwrapAny
@Message(value="Unwrapping of any instances in %s to a type of %s is not a supported", id=911) java.lang.IllegalArgumentException unableToUnwrapAny(java.lang.String objs, java.lang.Class<?> clazz)
-
unprotectedAttributeSet
@Message(value="Expecting a protected configuration for %s", id=912) java.lang.IllegalStateException unprotectedAttributeSet(java.lang.String name)
-
protectedAttributeSet
@Message(value="Expecting a unprotected configuration for %s", id=913) java.lang.IllegalStateException protectedAttributeSet(java.lang.String name)
-
attributeSetDuplicateAttribute
@Message(value="Duplicate attribute \'%s\' in attribute set \'%s\'", id=914) java.lang.IllegalArgumentException attributeSetDuplicateAttribute(java.lang.String name, java.lang.String setName)
-
noSuchAttribute
@Message(value="No such attribute \'%s\' in attribute set \'%s\'", id=915) java.lang.IllegalArgumentException noSuchAttribute(java.lang.String name, java.lang.String setName)
-
noAttributeCopierForType
@Message(value="No attribute copier for type \'%s\'", id=916) java.lang.IllegalArgumentException noAttributeCopierForType(java.lang.Class<?> klass)
-
cannotFindResource
@Message(value="Cannot find resource \'%s\'", id=918) java.io.IOException cannotFindResource(java.lang.String fileName)
-
multipleConfigurationValidationErrors
@Message(value="Multiple errors encountered while validating configuration", id=919) CacheConfigurationException multipleConfigurationValidationErrors()
-
unableToLoadFileUsingScheme
@Message(value="Unable to load file using scheme %s", id=920) java.lang.UnsupportedOperationException unableToLoadFileUsingScheme(java.lang.String scheme)
-
noSuchAliasInKeyStore
@Message(value="The alias \'%s\' does not exist in the key store \'%s\'", id=921) java.lang.SecurityException noSuchAliasInKeyStore(java.lang.String keyAlias, java.lang.String keyStoreFileName)
-
errorRollingBack
@LogMessage(level=ERROR) @Message(value="Exception during rollback", id=922) void errorRollingBack(@Cause java.lang.Throwable e)
-
errorEnlistingResource
@LogMessage(level=ERROR) @Message(value="Error enlisting resource", id=923) void errorEnlistingResource(@Cause java.lang.Throwable e)
-
beforeCompletionFailed
@LogMessage(level=ERROR) @Message(value="beforeCompletion() failed for %s", id=924) void beforeCompletionFailed(java.lang.String synchronization, @Cause java.lang.Throwable t)
-
unexpectedErrorFromResourceManager
@LogMessage(level=ERROR) @Message(value="Unexpected error from resource manager!", id=925) void unexpectedErrorFromResourceManager(@Cause java.lang.Throwable t)
-
afterCompletionFailed
@LogMessage(level=ERROR) @Message(value="afterCompletion() failed for %s", id=926) void afterCompletionFailed(java.lang.String synchronization, @Cause java.lang.Throwable t)
-
errorCommittingTx
@LogMessage(level=WARN) @Message(value="exception while committing", id=927) void errorCommittingTx(@Cause java.lang.Throwable e)
-
xaResourceEndFailed
@LogMessage(level=ERROR) @Message(value="end() failed for %s", id=928) void xaResourceEndFailed(java.lang.String xaResource, @Cause java.lang.Throwable t)
-
missingMediaType
@Message(value="MediaType cannot be empty or null!", id=929) EncodingException missingMediaType()
-
invalidMediaTypeSubtype
@Message(value="MediaType must contain a type and a subtype separated by \'/\'", id=930) EncodingException invalidMediaTypeSubtype()
-
invalidMediaTypeParam
@Message(value="Failed to parse MediaType: Invalid param description \'%s\'", id=931) EncodingException invalidMediaTypeParam(java.lang.String param)
-
unquotedMediaTypeParam
@Message(value="Unclosed param value quote", id=932) EncodingException unquotedMediaTypeParam()
-
invalidCharMediaType
@Message(value="Invalid character \'%s\' found in token \'%s\'", id=933) EncodingException invalidCharMediaType(char character, java.lang.String token)
-
unsupportedContent
@Message(value="Unsupported content \'%s\'", id=934) EncodingException unsupportedContent(java.lang.Object content)
-
invalidWeight
@Message(value="Invalid Weight \'%s\'. Supported values are between 0 and 1.0", id=935) EncodingException invalidWeight(java.lang.Object weight)
-
classNotInWhitelist
@Message(value="Class \'%s\' blocked by deserialization white list. Adjust the configuration serialization white list regular expression to include this class.", id=936) CacheException classNotInWhitelist(java.lang.String className)
-
invalidMediaType
@Message(value="Invalid media type. Expected \'%s\' but got \'%s\'", id=937) EncodingException invalidMediaType(java.lang.String expected, java.lang.String actual)
-
invalidTextContent
@Message(value="Invalid text content \'%s\'", id=938) EncodingException invalidTextContent(java.lang.Object content)
-
conversionNotSupported
@Message(value="Conversion of content \'%s\' from \'%s\' to \'%s\' not supported", id=939) EncodingException conversionNotSupported(java.lang.Object content, java.lang.String fromMediaType, java.lang.String toMediaType)
-
cannotDecodeFormURLContent
@Message(value="Invalid application/x-www-form-urlencoded content: \'%s\'", id=940) EncodingException cannotDecodeFormURLContent(java.lang.Object content)
-
errorEncoding
@Message(value="Error encoding content \'%s\' to \'%s\'", id=941) EncodingException errorEncoding(java.lang.Object content, MediaType mediaType)
-
unableToConvertStringPropertyToEnum
@LogMessage(level=WARN) @Message(value="Unable to convert property [%s] to an enum! Using default value of %d", id=942) void unableToConvertStringPropertyToEnum(java.lang.String value, java.lang.String defaultValue)
-
couldNotRegisterObjectName
@LogMessage(level=WARN) @Message(value="Could not register object with name: %s", id=943) void couldNotRegisterObjectName(javax.management.ObjectName objectName, @Cause javax.management.InstanceAlreadyExistsException e)
-
featureDisabled
@Message(value="Feature %s is disabled!", id=944) CacheConfigurationException featureDisabled(java.lang.String feature)
-
counterOurOfBounds
@Message(value="%s reached.", id=29501) CounterOutOfBoundsException counterOurOfBounds(java.lang.String bound)
-
invalidCounterType
@Message(value="Invalid counter type. Expected=%s but got %s", id=29514) CounterException invalidCounterType(java.lang.String expected, java.lang.String actual)
-
undefinedCounter
@Message(value="Counter \'%s\' is not defined.", id=29516) CounterException undefinedCounter(java.lang.String name)
-
invalidCounterTypeEncoded
@Message(value="WEAK and BOUNDED encoded flag isn\'t supported!", id=29522) CounterException invalidCounterTypeEncoded()
-
-