Class ErrorLogPublisher<T extends ErrorLogPublisherCfg>

    • Method Detail

      • isConfigurationAcceptable

        public boolean isConfigurationAcceptable​(T configuration,
                                                 List<LocalizableMessage> unacceptableReasons)
        Description copied from interface: LogPublisher
        Indicates whether the provided configuration is acceptable for this log publisher. It should be possible to call this method on an uninitialized log publisher instance in order to determine whether the log publisher would be able to use the provided configuration.
        Specified by:
        isConfigurationAcceptable in interface LogPublisher<T extends ErrorLogPublisherCfg>
        Parameters:
        configuration - The log publisher configuration for which to make the determination.
        unacceptableReasons - A list that may be used to hold the reasons that the provided configuration is not acceptable.
        Returns:
        true if the provided configuration is acceptable for this log publisher, or false if not.
      • log

        public abstract void log​(String category,
                                 long categoryMask,
                                 Severity severity,
                                 LocalizableMessage message)
        Writes a message to the error log using the provided information.

        The category and severity information are used to determine whether to actually log this message.

        Parameters:
        category - The category of the message, which is a category name defined in org.opends.server.loggers.ServerLoggers interface.
        categoryMask - The bitmask of the category.
        severity - The severity of the message.
        message - The message to be logged.