org.marketcetera.util.log
Class I18NLoggerProxy

java.lang.Object
  extended by org.marketcetera.util.log.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
I18NLoggerProxy(I18NMessageProvider messageProvider)
          Creates a new logger which uses the given message provider to map messages onto text.
 
Method Summary
 void debug(Object category, I18NMessage message, Object... params)
          Logs the given parameterized message under the given logging category at the debugging level.
 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.
 boolean equals(Object other)
           
 void error(Object category, I18NMessage message, Object... params)
          Logs the given parameterized message under the given logging category at the error level.
 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.
 I18NMessageProvider getMessageProvider()
          Returns the receiver's message provider.
 int hashCode()
           
 void info(Object category, I18NMessage message, Object... params)
          Logs the given parameterized message under the given logging category at the informational level.
 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 trace(Object category, I18NMessage message, Object... params)
          Logs the given parameterized message under the given logging category at the tracing level.
 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 warn(Object category, I18NMessage message, Object... params)
          Logs the given parameterized message under the given logging category at the warning level.
 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.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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

equals

public boolean equals(Object other)
Overrides:
equals in class Object


Copyright © 2012. All Rights Reserved.