Interface LoggingLogger

  • All Superinterfaces:
    org.jboss.logging.BasicLogger
    All Known Implementing Classes:
    LoggingLogger_$logger

    @MessageLogger(projectCode="WFLYLOG",
                   length=4)
    public interface LoggingLogger
    extends org.jboss.logging.BasicLogger
    Date: 09.06.2011
    Author:
    James R. Perkins, David M. Lloyd
    • Field Detail

      • ROOT_LOGGER

        static final LoggingLogger ROOT_LOGGER
        A root logger with the category of the package name.
    • Method Detail

      • failedToCloseResource

        @LogMessage(level=ERROR)
        @Message(id=6,
                 value="Failed to close resource %s")
        void failedToCloseResource​(@Cause
                                   Throwable cause,
                                   AutoCloseable closeable)
        Logs an error message indicating to failure to close the resource represented by the closeable parameter.
        Parameters:
        cause - the cause of the error
        closeable - the resource
      • invalidPropertyAttribute

        @LogMessage(level=WARN)
        @Message(id=7,
                 value="The attribute %s could not be set as it is not a configurable property value.")
        void invalidPropertyAttribute​(String name)
        Logs a warning message indicating the attribute, represented by the name parameter, is not a configurable property value.
        Parameters:
        name - the name of the attribute
      • pathManagerServiceNotStarted

        @Message(id=8,
                 value="The path manager service does not appear to be started. Any changes may be lost as a result of this.")
        String pathManagerServiceNotStarted()
      • loggingProfileNotFound

        @LogMessage(level=WARN)
        @Message(id=10,
                 value="Logging profile \'%s\' was specified for deployment \'%s\' but was not found. Using system logging configuration.")
        void loggingProfileNotFound​(String loggingProfile,
                                    ResourceRoot deployment)
        Logs a warning message indicating the deployment specified a logging profile, but the logging profile was not found.
        Parameters:
        loggingProfile - the logging profile that was not found
        deployment - the deployment that specified the logging profile
      • julConfigurationFileFound

        @LogMessage(level=WARN)
        @Message(id=11,
                 value="The configuration file in \'%s\' appears to be a J.U.L. configuration file. The log manager does not allow this type of configuration file.")
        void julConfigurationFileFound​(String fileName)
        Logs a warning message indicating the configuration file found appears to be a J.U.L. configuration file and the log manager does not allow this configuration.
        Parameters:
        fileName - the configuration file name
      • replacingNamedHandler

        @LogMessage(level=WARN)
        @Message(id=12,
                 value="Replacing handler \'%s\' during add operation. Either the handler type or the module name differs from the initial configuration.")
        void replacingNamedHandler​(String name)
        Logs a warning message indicating the handler is being replaced due to a different type or module name.
        Parameters:
        name - the name of the handler
      • replacingConfigurator

        @LogMessage(level=WARN)
        @Message(id=13,
                 value="A configurator class, \'%s\', is not a known configurator and will be replaced.")
        void replacingConfigurator​(@Transform(GET_CLASS)
                                   org.jboss.logmanager.Configurator c)
        Logs a warning message indicating the configurator class is an unknown type and will be replaced.
        Parameters:
        c - the class that is being replaced
      • logContextNotRemoved

        @LogMessage(level=ERROR)
        @Message(id=14,
                 value="The log context (%s) could not be removed for deployment %s")
        void logContextNotRemoved​(org.jboss.logmanager.LogContext logContext,
                                  String deploymentName)
        Logs an error message indicating the log context associated with the deployment could not be removed from the log context selector.
        Parameters:
        logContext - the log context that could not be removed
        deploymentName - the name of the deployment
      • perDeploymentPropertyDeprecated

        @Deprecated
        @LogMessage(level=WARN)
        @Message(id=15,
                 value="The per-logging deployment property (%s) has been deprecated. Please use the %s attribute to enable/disable per-deployment logging.")
        void perDeploymentPropertyDeprecated​(String propertyName,
                                             String attributeName)
        Deprecated.
        Logs a warning message indicating the per-logging deployment property has been deprecated and should not be used. Instead the attribute on the root subsystem should be used.
        Parameters:
        propertyName - the per-deployment property name
        attributeName - the name of the new attribute
      • perLoggingDeploymentIgnored

        @Deprecated
        @LogMessage(level=WARN)
        @Message(id=16,
                 value="The per-logging deployment property (%s) is being ignored because the attribute %s has been set to ignore configuration files in the deployment %s.")
        void perLoggingDeploymentIgnored​(String propertyName,
                                         String attributeName,
                                         String deploymentName)
        Deprecated.
        Logs a warning message indicating the per-logging deployment property is being ignored because the attribute has been set to ignore the deployments logging configuration.
        Parameters:
        propertyName - the per-deployment property name
        attributeName - the name of the new attribute
        deploymentName - the name of the deployment
      • cannotLoadModule

        @Message(id=19,
                 value="Failed to load module \'%s\' for %s \'%s\'")
        IllegalArgumentException cannotLoadModule​(@Cause
                                                  Throwable cause,
                                                  String moduleName,
                                                  String description,
                                                  String name)
        Creates an exception indicating a failure to load the module.
        Parameters:
        cause - the cause of the error
        moduleName - the name of the module that could not be loaded
        description - a description
        name - the name of the configuration
        Returns:
        an IllegalArgumentException for the error
      • classNotFound

        @Message(id=21,
                 value="Class \'%s\' could not be found.")
        String classNotFound​(@Cause
                             Throwable cause,
                             String className)
        Creates an exception indicating the class, represented by the className parameter, could not be found.
        Parameters:
        cause - the cause of the error.
        className - the name of the class that could not be found.
        Returns:
        the message.
      • handlerAlreadyDefined

        @Message(id=23,
                 value="Handler %s is already assigned.")
        String handlerAlreadyDefined​(String name)
        A message indicating the handler, represented by the name parameter, is already assigned.
        Parameters:
        name - the handler name.
        Returns:
        the message.
      • invalidFilter

        @Message(id=25,
                 value="Filter %s is invalid")
        String invalidFilter​(String name)
        A message indicating the filter is invalid.
        Parameters:
        name - the name of the filter.
        Returns:
        the message.
      • invalidLogLevel

        @Message(id=26,
                 value="Log level %s is invalid.")
        String invalidLogLevel​(String level)
        A message indicating the log level, represented by the level parameter, is invalid.
        Parameters:
        level - the invalid level.
        Returns:
        the message.
      • invalidOverflowAction

        @Message(id=27,
                 value="Overflow action %s is invalid.")
        String invalidOverflowAction​(String overflowAction)
        A message indicating the overflow action, represented by the overflowAction parameter, is invalid.
        Parameters:
        overflowAction - the invalid overflow action.
        Returns:
        the message.
      • invalidSize

        @Message(id=28,
                 value="Invalid size %s")
        String invalidSize​(String size)
        A message indicating the size is invalid.
        Parameters:
        size - the size.
        Returns:
        the message.
      • loggerNotFound

        @Message(id=35,
                 value="Logger \'%s\' was not found.")
        String loggerNotFound​(String name)
        A message indicating the logger, represented by the name parameter was not found.
        Parameters:
        name - the name of the missing logger.
        Returns:
        the message.
      • invalidRelativeTo

        @Message(id=39,
                 value="An absolute path (%s) cannot be specified for relative-to.")
        String invalidRelativeTo​(String relativeTo)
        A message indicating an absolute path cannot be specified for relative-to.
        Parameters:
        relativeTo - the invalid absolute path.
        Returns:
        the message.
      • invalidSuffix

        @Message(id=41,
                 value="The suffix (%s) is invalid. A suffix must be a valid date format.")
        String invalidSuffix​(String suffix)
        A message indicating a suffix is invalid.
        Parameters:
        suffix - the suffix.
        Returns:
        the message.
      • failedToConfigureLogging

        @Message(id=42,
                 value="Failed to configure logging using \'%s\' configuration file.")
        DeploymentUnitProcessingException failedToConfigureLogging​(@Cause
                                                                   Throwable cause,
                                                                   String fileName)
        Creates an exception indicating a failure to configure logging with the configuration file represented by the fileName parameter.
        Parameters:
        cause - the cause of the error.
        fileName - the configuration file name.
        Returns:
        a DeploymentUnitProcessingException for the error.
      • errorProcessingLoggingConfiguration

        @Message(id=43,
                 value="Error occurred while searching for logging configuration files.")
        DeploymentUnitProcessingException errorProcessingLoggingConfiguration​(@Cause
                                                                              Throwable cause)
        Creates an exception indicating an error occurred while searching for logging configuration files.
        Parameters:
        cause - the cause of the error.
        Returns:
        a DeploymentUnitProcessingException for the error.
      • handlerAttachedToHandlers

        @Message(id=44,
                 value="Handler %s is attached to the following handlers and cannot be removed; %s")
        OperationFailedException handlerAttachedToHandlers​(String handlerName,
                                                           Collection<String> handlers)
        A message indicating the handler is attached to the handlers.
        Parameters:
        handlerName - the name of tha attached handler.
        handlers - a collection of the handler names.
        Returns:
        the message.
      • handlerAttachedToLoggers

        @Message(id=45,
                 value="Handler %s is attached to the following loggers and cannot be removed; %s")
        OperationFailedException handlerAttachedToLoggers​(String handlerName,
                                                          Collection<String> loggers)
        A message indicating the handler is attached to the loggers.
        Parameters:
        handlerName - the name of tha attached handler.
        loggers - a collection of the logger names.
        Returns:
        the message.
      • cannotAddHandlerToSelf

        @Message(id=46,
                 value="Cannot add handler (%s) to itself")
        String cannotAddHandlerToSelf​(String handlerName)
        A message indicating the handler cannot be attached to itself.
        Parameters:
        handlerName - the name of the handler
        Returns:
        the message
      • handlerClosed

        @Message(id=47,
                 value="The handler is closed, cannot publish to a closed handler")
        IllegalStateException handlerClosed()
        An exception indicating a handler has been closed.
        Returns:
        an IllegalStateException for the error
      • handlerConfigurationNotFound

        @Message(id=48,
                 value="Configuration for handler \'%s\' could not be found.")
        String handlerConfigurationNotFound​(String name)
        A message indicating the handler configuration could not be found.
        Parameters:
        name - the name of the handler
        Returns:
        the message
      • loggerConfigurationNotFound

        @Message(id=49,
                 value="Configuration for logger \'%s\' could not be found.")
        String loggerConfigurationNotFound​(String name)
        A message indicating the logger configuration could not be found.
        Parameters:
        name - the name of the logger
        Returns:
        the message
      • unsupportedMethod

        @Message(id=50,
                 value="Method %s on class %s is not supported")
        UnsupportedOperationException unsupportedMethod​(String methodName,
                                                        String className)
        Creates an exception indicating the method on the class is not supported.
        Parameters:
        methodName - the name of the method
        className - the name of the class
        Returns:
        an UnsupportedOperationException for the error
      • failedToWriteConfigurationFile

        @Message(id=51,
                 value="Failed to write configuration file %s")
        RuntimeException failedToWriteConfigurationFile​(@Cause
                                                        Throwable e,
                                                        File fileName)
        A message indicating a failure to write the configuration file.
        Parameters:
        fileName - the name of the file
        Returns:
        the message
      • formatterNotFound

        @Message(id=61,
                 value="Formatter \'%s\' is not found")
        String formatterNotFound​(String name)
        Creates an exception indicating the formatter could not be found.
        Parameters:
        name - the name of the formatter
        Returns:
        an IllegalArgumentException for the error
      • truncatedFilterExpression

        @Message(id=70,
                 value="Truncated filter expression string")
        IllegalArgumentException truncatedFilterExpression()
        Creates an exception indicating the filter expression string is truncated.
        Returns:
        an IllegalArgumentException for the error
      • invalidEscapeFoundInFilterExpression

        @Message(id=71,
                 value="Invalid escape found in filter expression string")
        IllegalArgumentException invalidEscapeFoundInFilterExpression()
        Creates an exception indicating an invalid escape was found in the filter expression string.
        Returns:
        an IllegalArgumentException for the error
      • filterNotFound

        @Message(id=72,
                 value="Filter \'%s\' is not found")
        OperationFailedException filterNotFound​(String name)
        Creates an exception indicating the filter could not be found.
        Parameters:
        name - the name of the filter
        Returns:
        an IllegalArgumentException for the error
      • expectedIdentifier

        @Message(id=73,
                 value="Expected identifier next in filter expression")
        IllegalArgumentException expectedIdentifier()
        Creates an exception indicating an identifier was expected next in the filter expression.
        Returns:
        an IllegalArgumentException for the error
      • expectedString

        @Message(id=74,
                 value="Expected string next in filter expression")
        IllegalArgumentException expectedString()
        Creates an exception indicating a string was expected next in the filter expression.
        Returns:
        an IllegalArgumentException for the error
      • expected

        @Message(id=75,
                 value="Expected \'%s\' next in filter expression")
        IllegalArgumentException expected​(String token)
        Creates an exception indicating the token was expected next in the filter expression.
        Parameters:
        token - the token expected
        Returns:
        an IllegalArgumentException for the error
      • expected

        @Message(id=-1,
                 value="Expected \'%s\' or \'%s\' next in filter expression")
        IllegalArgumentException expected​(String trueToken,
                                          String falseToken)
        Creates an exception indicating the one or the other tokens was expected next in the filter expression.
        Parameters:
        trueToken - the true token
        falseToken - the false token
        Returns:
        an IllegalArgumentException for the error
      • unexpectedEnd

        @Message(id=76,
                 value="Unexpected end of filter expression")
        IllegalArgumentException unexpectedEnd()
        Creates an exception indicating an unexpected end of the filter expression.
        Returns:
        an IllegalArgumentException for the error
      • extensionNotInitialized

        @Message(id=78,
                 value="The logging subsystem requires the log manager to be org.jboss.logmanager.LogManager. The subsystem has not be initialized and cannot be used. To use JBoss Log Manager you must add the system property \"java.util.logging.manager\" and set it to \"org.jboss.logmanager.LogManager\"")
        IllegalStateException extensionNotInitialized()
        Logs a warning message indicating the LogManager is required and the logging subsystem was not initialized.
        Returns:
        an IllegalStateException for the error
      • failedToReadLogFile

        @Message(id=79,
                 value="Failed to read the log file \'%s\'")
        RuntimeException failedToReadLogFile​(@Cause
                                             Throwable cause,
                                             String name)
        Creates an exception indicating a failure to read the log file.

        Thrown as a RuntimeException because the operation did not fail. The cause is likely a failure to read the file at an OS level.

        Parameters:
        cause - the cause of the error
        name - the name of the file that was not found
        Returns:
        an RuntimeException for the error
      • logFileNotFound

        @Message(id=80,
                 value="File \'%s\' was not found and cannot be found in the %s directory.")
        Resource.NoSuchResourceException logFileNotFound​(String name,
                                                         String directoryProperty)
        Creates an exception indicating the file was found in the log directory.
        Parameters:
        name - the name of the file that was not found
        directoryProperty - the name of the property used to resolved the log directory
        Returns:
        an OperationFailedException for the error
      • readNotAllowed

        @Message(id=81,
                 value="File \'%s\' is not allowed to be read.")
        OperationFailedException readNotAllowed​(String name)
        Creates an exception indicating the user cannot read the file.
        Parameters:
        name - the name of the file that was not allowed to be read
        Returns:
        an OperationFailedException for the error
      • suffixContainsMillis

        @Message(id=82,
                 value="The suffix (%s) can not contain seconds or milliseconds.")
        String suffixContainsMillis​(String suffix)
        A message indicating a suffix contains seconds or milliseconds and the handler does not allow it.
        Parameters:
        suffix - the suffix.
        Returns:
        the message.
      • invalidLogFile

        @Message(id=83,
                 value="Path \'%s\' is a directory and cannot be used as a log file.")
        OperationFailedException invalidLogFile​(String path)
        Creates an exception indicating the path is a directory and cannot be used as a log file.
        Parameters:
        path - the path attempting to be used as a log file
        Returns:
        an OperationFailedException for the error.
      • cannotRegisterResourceOfType

        @Message(id=84,
                 value="Resources of type %s cannot be registered")
        UnsupportedOperationException cannotRegisterResourceOfType​(String childType)
        Create a failure description message indicating that the resource of given type can not be registered.
        Returns:
        an UnsupportedOperationException for the error
      • cannotRemoveResourceOfType

        @Message(id=85,
                 value="Resources of type %s cannot be removed")
        UnsupportedOperationException cannotRemoveResourceOfType​(String childType)
        Create a failure description message indicating that the resource of given type can not be removed.
        Returns:
        an UnsupportedOperationException for the error
      • deploymentNameNotFound

        @Message(id=86,
                 value="Could not determine deployment name from the address %s.")
        IllegalArgumentException deploymentNameNotFound​(PathAddress address)
        Creates an exception indicating the deployment name was not found on the address.
        Parameters:
        address - the invalid address
        Returns:
        an IllegalArgumentException for the error
      • errorProcessingLogDirectory

        @LogMessage(level=ERROR)
        @Message(id=87,
                 value="Failed to process logging directory %s. Log files cannot be listed.")
        void errorProcessingLogDirectory​(String logDir)
      • errorDeterminingChildrenExist

        @LogMessage(level=ERROR)
        @Message(id=88,
                 value="Could not determine %s had any children resources.")
        void errorDeterminingChildrenExist​(@Cause
                                           Throwable cause,
                                           String childType)
        Logs an error message indicating a failure to determine if a child resource exists.
        Parameters:
        cause - the cause of the error
        childType - the child resource
      • unknownLogManager

        @LogMessage(level=WARN)
        @Message(id=89,
                 value="The log manager check was skipped and the log manager system property, \"java.util.logging.manager\", does not appear to be set to \"org.jboss.logmanager.LogManager\". The current value is \"%s\". Some behavior of the logged output such as MDC and NDC may not work as expected.")
        void unknownLogManager​(String logManagerName)
        Logs a warning message indicating the log manager does not appear to the LogManager.
        Parameters:
        logManagerName - the log manager system property value
      • unresolvablePathExpressions

        @Once
        @LogMessage(level=WARN)
        @Message(id=90,
                 value="The following path expressions could not be resolved while attempting to determine which log files are available to be read: %s")
        void unresolvablePathExpressions​(Set<String> unresolvableExpressions)
        Logs a warning message indicating all the path expressions that could not be resolved while attempting to determine which log files are available to be read.

        Note this will only be logged once for the life of the JVM.

        Parameters:
        unresolvableExpressions - the set of expressions that could not be resolved
      • invalidExceptionOutputType

        @Message(id=91,
                 value="Exception output type %s is invalid.")
        OperationFailedException invalidExceptionOutputType​(String value)
        A message indicating the exception output type is not valid.
        Parameters:
        value - the invalid value
        Returns:
        an OperationFailedException for the error
      • invalidType

        @Message(id=92,
                 value="Invalid type found. Expected %s but found %s.")
        OperationFailedException invalidType​(Class<?> expected,
                                             Class<?> found)
        Creates an exception indicating the types is invalid.
        Parameters:
        expected - the expected type
        found - the found type
        Returns:
        an OperationFailedException for the error
      • failedToConfigureSslContext

        @Message(id=93,
                 value="Failed to configure SSL context for %s %s.")
        OperationFailedException failedToConfigureSslContext​(@Cause
                                                             Throwable cause,
                                                             String resourceName,
                                                             String resourceValue)
        Creates an exception indicating a failure to configure the SSL context.
        Parameters:
        cause - the cause of the error
        resourceName - the name of the resource
        resourceValue - the resource value
        Returns:
        an OperationFailedException for the error
      • illegalFormatterName

        @Message(id=94,
                 value="Formatter name cannot end with \'-wfcore-pattern-formatter\'")
        OperationFailedException illegalFormatterName()
        Creates an exception indicating a formatter is using a reserved name.
        Returns:
        an OperationFailedException for the error
      • reservedFilterName

        @Message(id=95,
                 value="The name %s cannot be used as a filter name as it is a reserved filter name. Reserved names are: %s")
        OperationFailedException reservedFilterName​(String name,
                                                    Collection<String> reservedNames)
        Creates an exception indicating the name of the filter is a reserved filter name.
        Parameters:
        name - the invalid name
        reservedNames - the collection of reserved names
        Returns:
        an OperationFailedException for the error
      • invalidFilterNameStart

        @Message(id=96,
                 value="The name %s cannot be used as a filter name as it starts with an invalid character %s")
        OperationFailedException invalidFilterNameStart​(String name,
                                                        char invalidChar)
        Creates an exception indicating the name of the filter is a reserved filter name.
        Parameters:
        name - the invalid name
        invalidChar - the invalid character
        Returns:
        an OperationFailedException for the error
      • invalidFilterName

        @Message(id=97,
                 value="The name %s cannot be used as a filter name as it contains an invalid character %s")
        OperationFailedException invalidFilterName​(String name,
                                                   char invalidChar)
        Creates an exception indicating the name of the filter is a reserved filter name.
        Parameters:
        name - the invalid name
        invalidChar - the invalid character
        Returns:
        an OperationFailedException for the error
      • usageOfAppender

        @Message(id=99,
                 value="Usage of a log4j appender (%s) found in a custom-handler. Support for using appenders as custom handlers has been deprecated and will be removed in a future release.")
        @LogMessage(level=WARN)
        void usageOfAppender​(String appenderType)
        Logs a warning message indicating the deprecation of an appender being used for custom-handler.
        Parameters:
        appenderType - the appender being used
      • usageOfLog4j1Config

        @Message(id=100,
                 value="Usage of a log4j configuration file (%s) was found in deployment %s. Support for log4j configuration files in deployments has been deprecated and will be removed in a future release.")
        @LogMessage(level=WARN)
        void usageOfLog4j1Config​(String fileName,
                                 String deploymentName)
        Logs a warning message indicating the deprecation of log4j configuration files in a deployment.
        Parameters:
        fileName - the log4j configuration file
        deploymentName - the deployment name