Class I18NLoggerProxy

  • All Implemented Interfaces:
    Serializable

    public class I18NLoggerProxy
    extends Object
    implements Serializable
    A logger which supports internationalized messages.
    Since:
    0.5.0
    Version:
    $Id: I18NLoggerProxy.java 16154 2012-07-14 16:34:05Z colin $
    Author:
    tlerios@marketcetera.com
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      I18NLoggerProxy​(I18NMessageProvider messageProvider)
      Creates a new logger which uses the given message provider to map messages onto text.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void debug​(Object category, Throwable throwable)
      Logs the given throwable under the given logging category at the debugging level.
      void debug​(Object category, Throwable throwable, I18NMessage message, Object... params)
      Logs the given parameterized message and throwable under the given logging category at the debugging level.
      void debug​(Object category, I18NMessage message, Object... params)
      Logs the given parameterized message under the given logging category at the debugging level.
      (package private) void debugProxy​(String proxy, Object category, Throwable throwable)
      Logs the given throwable under the given logging category at the debugging level via the given logging proxy.
      (package private) void debugProxy​(String proxy, Object category, Throwable throwable, I18NMessage message, Object... params)
      Logs the given parameterized message and throwable under the given logging category at the debugging level via the given logging proxy.
      (package private) void debugProxy​(String proxy, Object category, I18NMessage message, Object... params)
      Logs the given parameterized message under the given logging category at the debugging level via the given logging proxy.
      boolean equals​(Object other)  
      void error​(Object category, Throwable throwable)
      Logs the given throwable under the given logging category at the error level.
      void error​(Object category, Throwable throwable, I18NMessage message, Object... params)
      Logs the given parameterized message and throwable under the given logging category at the error level.
      void error​(Object category, I18NMessage message, Object... params)
      Logs the given parameterized message under the given logging category at the error level.
      (package private) void errorProxy​(String proxy, Object category, Throwable throwable)
      Logs the given throwable under the given logging category at the error level via the given logging proxy.
      (package private) void errorProxy​(String proxy, Object category, Throwable throwable, I18NMessage message, Object... params)
      Logs the given parameterized message and throwable under the given logging category at the error level via the given logging proxy.
      (package private) void errorProxy​(String proxy, Object category, I18NMessage message, Object... params)
      Logs the given parameterized message under the given logging category at the error level via the given logging proxy.
      I18NMessageProvider getMessageProvider()
      Returns the receiver's message provider.
      int hashCode()  
      void info​(Object category, Throwable throwable)
      Logs the given throwable under the given logging category at the informational level.
      void info​(Object category, Throwable throwable, I18NMessage message, Object... params)
      Logs the given parameterized message and throwable under the given logging category at the informational level.
      void info​(Object category, I18NMessage message, Object... params)
      Logs the given parameterized message under the given logging category at the informational level.
      (package private) void infoProxy​(String proxy, Object category, Throwable throwable)
      Logs the given throwable under the given logging category at the informational level via the given logging proxy.
      (package private) void infoProxy​(String proxy, Object category, Throwable throwable, I18NMessage message, Object... params)
      Logs the given parameterized message and throwable under the given logging category at the informational level via the given logging proxy.
      (package private) void infoProxy​(String proxy, Object category, I18NMessage message, Object... params)
      Logs the given parameterized message under the given logging category at the informational level via the given logging proxy.
      void trace​(Object category, Throwable throwable)
      Logs the given throwable under the given logging category at the tracing level.
      void trace​(Object category, Throwable throwable, I18NMessage message, Object... params)
      Logs the given parameterized message and throwable under the given logging category at the tracing level.
      void trace​(Object category, I18NMessage message, Object... params)
      Logs the given parameterized message under the given logging category at the tracing level.
      (package private) void traceProxy​(String proxy, Object category, Throwable throwable)
      Logs the given throwable under the given logging category at the tracing level via the given logging proxy.
      (package private) void traceProxy​(String proxy, Object category, Throwable throwable, I18NMessage message, Object... params)
      Logs the given parameterized message and throwable under the given logging category at the tracing level via the given logging proxy.
      (package private) void traceProxy​(String proxy, Object category, I18NMessage message, Object... params)
      Logs the given parameterized message under the given logging category at the tracing level via the given logging proxy.
      void warn​(Object category, Throwable throwable)
      Logs the given throwable under the given logging category at the warning level.
      void warn​(Object category, Throwable throwable, I18NMessage message, Object... params)
      Logs the given parameterized message and throwable under the given logging category at the warning level.
      void warn​(Object category, I18NMessage message, Object... params)
      Logs the given parameterized message under the given logging category at the warning level.
      (package private) void warnProxy​(String proxy, Object category, Throwable throwable)
      Logs the given throwable under the given logging category at the warning level via the given logging proxy.
      (package private) void warnProxy​(String proxy, Object category, Throwable throwable, I18NMessage message, Object... params)
      Logs the given parameterized message and throwable under the given logging category at the warning level via the given logging proxy.
      (package private) void warnProxy​(String proxy, Object category, I18NMessage message, Object... params)
      Logs the given parameterized message under the given logging category at the warning level via the given logging proxy.
    • Field Detail

      • SELF_PROXY

        private static final String SELF_PROXY
        The logging proxy name used when none is explicitly specified.
    • Constructor Detail

      • I18NLoggerProxy

        public I18NLoggerProxy​(I18NMessageProvider messageProvider)
        Creates a new logger which uses the given message provider to map messages onto text.
        Parameters:
        messageProvider - The message provider.
    • Method Detail

      • getMessageProvider

        public I18NMessageProvider getMessageProvider()
        Returns the receiver's message provider.
        Returns:
        The message provider.
      • errorProxy

        void errorProxy​(String proxy,
                        Object category,
                        Throwable throwable)
        Logs the given throwable under the given logging category at the error level via the given logging proxy. No logging takes place if logging of error messages is disabled for the given logging category.
        Parameters:
        proxy - The proxy.
        category - The category.
        throwable - The throwable.
      • error

        public void error​(Object category,
                          Throwable throwable)
        Logs the given throwable under the given logging category at the error level. No logging takes place if logging of error messages is disabled for the given logging category.
        Parameters:
        category - The category.
        throwable - The throwable.
      • errorProxy

        void errorProxy​(String proxy,
                        Object category,
                        Throwable throwable,
                        I18NMessage message,
                        Object... params)
        Logs the given parameterized message and throwable under the given logging category at the error level via the given logging proxy. No logging takes place if logging of error messages is disabled for the given logging category.
        Parameters:
        proxy - The proxy.
        category - The category.
        throwable - The throwable.
        message - The message.
        params - The message parameters.
      • error

        public void error​(Object category,
                          Throwable throwable,
                          I18NMessage message,
                          Object... params)
        Logs the given parameterized message and throwable under the given logging category at the error level. No logging takes place if logging of error messages is disabled for the given logging category.
        Parameters:
        category - The category.
        throwable - The throwable.
        message - The message.
        params - The message parameters.
      • errorProxy

        void errorProxy​(String proxy,
                        Object category,
                        I18NMessage message,
                        Object... params)
        Logs the given parameterized message under the given logging category at the error level via the given logging proxy. No logging takes place if logging of error messages is disabled for the given logging category.
        Parameters:
        proxy - The proxy.
        category - The category.
        message - The message.
        params - The message parameters.
      • error

        public void error​(Object category,
                          I18NMessage message,
                          Object... params)
        Logs the given parameterized message under the given logging category at the error level. No logging takes place if logging of error messages is disabled for the given logging category.
        Parameters:
        category - The category.
        message - The message.
        params - The message parameters.
      • warnProxy

        void warnProxy​(String proxy,
                       Object category,
                       Throwable throwable)
        Logs the given throwable under the given logging category at the warning level via the given logging proxy. No logging takes place if logging of warning messages is disabled for the given logging category.
        Parameters:
        proxy - The proxy.
        category - The category.
        throwable - The throwable.
      • warn

        public void warn​(Object category,
                         Throwable throwable)
        Logs the given throwable under the given logging category at the warning level. No logging takes place if logging of warning messages is disabled for the given logging category.
        Parameters:
        category - The category.
        throwable - The throwable.
      • warnProxy

        void warnProxy​(String proxy,
                       Object category,
                       Throwable throwable,
                       I18NMessage message,
                       Object... params)
        Logs the given parameterized message and throwable under the given logging category at the warning level via the given logging proxy. No logging takes place if logging of warning messages is disabled for the given logging category.
        Parameters:
        proxy - The proxy.
        category - The category.
        throwable - The throwable.
        message - The message.
        params - The message parameters.
      • warn

        public void warn​(Object category,
                         Throwable throwable,
                         I18NMessage message,
                         Object... params)
        Logs the given parameterized message and throwable under the given logging category at the warning level. No logging takes place if logging of warning messages is disabled for the given logging category.
        Parameters:
        category - The category.
        throwable - The throwable.
        message - The message.
        params - The message parameters.
      • warnProxy

        void warnProxy​(String proxy,
                       Object category,
                       I18NMessage message,
                       Object... params)
        Logs the given parameterized message under the given logging category at the warning level via the given logging proxy. No logging takes place if logging of warning messages is disabled for the given logging category.
        Parameters:
        proxy - The proxy.
        category - The category.
        message - The message.
        params - The message parameters.
      • warn

        public void warn​(Object category,
                         I18NMessage message,
                         Object... params)
        Logs the given parameterized message under the given logging category at the warning level. No logging takes place if logging of warning messages is disabled for the given logging category.
        Parameters:
        category - The category.
        message - The message.
        params - The message parameters.
      • infoProxy

        void infoProxy​(String proxy,
                       Object category,
                       Throwable throwable)
        Logs the given throwable under the given logging category at the informational level via the given logging proxy. No logging takes place if logging of informational messages is disabled for the given logging category.
        Parameters:
        proxy - The proxy.
        category - The category.
        throwable - The throwable.
      • info

        public void info​(Object category,
                         Throwable throwable)
        Logs the given throwable under the given logging category at the informational level. No logging takes place if logging of informational messages is disabled for the given logging category.
        Parameters:
        category - The category.
        throwable - The throwable.
      • infoProxy

        void infoProxy​(String proxy,
                       Object category,
                       Throwable throwable,
                       I18NMessage message,
                       Object... params)
        Logs the given parameterized message and throwable under the given logging category at the informational level via the given logging proxy. No logging takes place if logging of informational messages is disabled for the given logging category.
        Parameters:
        proxy - The proxy.
        category - The category.
        throwable - The throwable.
        message - The message.
        params - The message parameters.
      • info

        public void info​(Object category,
                         Throwable throwable,
                         I18NMessage message,
                         Object... params)
        Logs the given parameterized message and throwable under the given logging category at the informational level. No logging takes place if logging of informational messages is disabled for the given logging category.
        Parameters:
        category - The category.
        throwable - The throwable.
        message - The message.
        params - The message parameters.
      • infoProxy

        void infoProxy​(String proxy,
                       Object category,
                       I18NMessage message,
                       Object... params)
        Logs the given parameterized message under the given logging category at the informational level via the given logging proxy. No logging takes place if logging of informational messages is disabled for the given logging category.
        Parameters:
        proxy - The proxy.
        category - The category.
        message - The message.
        params - The message parameters.
      • info

        public void info​(Object category,
                         I18NMessage message,
                         Object... params)
        Logs the given parameterized message under the given logging category at the informational level. No logging takes place if logging of informational messages is disabled for the given logging category.
        Parameters:
        category - The category.
        message - The message.
        params - The message parameters.
      • debugProxy

        void debugProxy​(String proxy,
                        Object category,
                        Throwable throwable)
        Logs the given throwable under the given logging category at the debugging level via the given logging proxy. No logging takes place if logging of debugging messages is disabled for the given logging category.
        Parameters:
        proxy - The proxy.
        category - The category.
        throwable - The throwable.
      • debug

        public void debug​(Object category,
                          Throwable throwable)
        Logs the given throwable under the given logging category at the debugging level. No logging takes place if logging of debugging messages is disabled for the given logging category.
        Parameters:
        category - The category.
        throwable - The throwable.
      • debugProxy

        void debugProxy​(String proxy,
                        Object category,
                        Throwable throwable,
                        I18NMessage message,
                        Object... params)
        Logs the given parameterized message and throwable under the given logging category at the debugging level via the given logging proxy. No logging takes place if logging of debugging messages is disabled for the given logging category.
        Parameters:
        proxy - The proxy.
        category - The category.
        throwable - The throwable.
        message - The message.
        params - The message parameters.
      • debug

        public void debug​(Object category,
                          Throwable throwable,
                          I18NMessage message,
                          Object... params)
        Logs the given parameterized message and throwable under the given logging category at the debugging level. No logging takes place if logging of debugging messages is disabled for the given logging category.
        Parameters:
        category - The category.
        throwable - The throwable.
        message - The message.
        params - The message parameters.
      • debugProxy

        void debugProxy​(String proxy,
                        Object category,
                        I18NMessage message,
                        Object... params)
        Logs the given parameterized message under the given logging category at the debugging level via the given logging proxy. No logging takes place if logging of debugging messages is disabled for the given logging category.
        Parameters:
        proxy - The proxy.
        category - The category.
        message - The message.
        params - The message parameters.
      • debug

        public void debug​(Object category,
                          I18NMessage message,
                          Object... params)
        Logs the given parameterized message under the given logging category at the debugging level. No logging takes place if logging of debugging messages is disabled for the given logging category.
        Parameters:
        category - The category.
        message - The message.
        params - The message parameters.
      • traceProxy

        void traceProxy​(String proxy,
                        Object category,
                        Throwable throwable)
        Logs the given throwable under the given logging category at the tracing level via the given logging proxy. No logging takes place if logging of tracing messages is disabled for the given logging category.
        Parameters:
        proxy - The proxy.
        category - The category.
        throwable - The throwable.
      • trace

        public void trace​(Object category,
                          Throwable throwable)
        Logs the given throwable under the given logging category at the tracing level. No logging takes place if logging of tracing messages is disabled for the given logging category.
        Parameters:
        category - The category.
        throwable - The throwable.
      • traceProxy

        void traceProxy​(String proxy,
                        Object category,
                        Throwable throwable,
                        I18NMessage message,
                        Object... params)
        Logs the given parameterized message and throwable under the given logging category at the tracing level via the given logging proxy. No logging takes place if logging of tracing messages is disabled for the given logging category.
        Parameters:
        proxy - The proxy.
        category - The category.
        throwable - The throwable.
        message - The message.
        params - The message parameters.
      • trace

        public void trace​(Object category,
                          Throwable throwable,
                          I18NMessage message,
                          Object... params)
        Logs the given parameterized message and throwable under the given logging category at the tracing level. No logging takes place if logging of tracing messages is disabled for the given logging category.
        Parameters:
        category - The category.
        throwable - The throwable.
        message - The message.
        params - The message parameters.
      • traceProxy

        void traceProxy​(String proxy,
                        Object category,
                        I18NMessage message,
                        Object... params)
        Logs the given parameterized message under the given logging category at the tracing level via the given logging proxy. No logging takes place if logging of tracing messages is disabled for the given logging category.
        Parameters:
        proxy - The proxy.
        category - The category.
        message - The message.
        params - The message parameters.
      • trace

        public void trace​(Object category,
                          I18NMessage message,
                          Object... params)
        Logs the given parameterized message under the given logging category at the tracing level. No logging takes place if logging of tracing messages is disabled for the given logging category.
        Parameters:
        category - The category.
        message - The message.
        params - The message parameters.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object