Package org.marketcetera.util.log
Class I18NLoggerProxy
- java.lang.Object
-
- 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
-
-
Field Summary
Fields Modifier and Type Field Description private I18NMessageProvidermMessageProviderprivate static StringSELF_PROXYThe logging proxy name used when none is explicitly specified.private static longserialVersionUID
-
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 voiddebug(Object category, Throwable throwable)Logs the given throwable under the given logging category at the debugging level.voiddebug(Object category, Throwable throwable, I18NMessage message, Object... params)Logs the given parameterized message and throwable under the given logging category at the debugging level.voiddebug(Object category, I18NMessage message, Object... params)Logs the given parameterized message under the given logging category at the debugging level.(package private) voiddebugProxy(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) voiddebugProxy(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) voiddebugProxy(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.booleanequals(Object other)voiderror(Object category, Throwable throwable)Logs the given throwable under the given logging category at the error level.voiderror(Object category, Throwable throwable, I18NMessage message, Object... params)Logs the given parameterized message and throwable under the given logging category at the error level.voiderror(Object category, I18NMessage message, Object... params)Logs the given parameterized message under the given logging category at the error level.(package private) voiderrorProxy(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) voiderrorProxy(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) voiderrorProxy(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.I18NMessageProvidergetMessageProvider()Returns the receiver's message provider.inthashCode()voidinfo(Object category, Throwable throwable)Logs the given throwable under the given logging category at the informational level.voidinfo(Object category, Throwable throwable, I18NMessage message, Object... params)Logs the given parameterized message and throwable under the given logging category at the informational level.voidinfo(Object category, I18NMessage message, Object... params)Logs the given parameterized message under the given logging category at the informational level.(package private) voidinfoProxy(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) voidinfoProxy(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) voidinfoProxy(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.voidtrace(Object category, Throwable throwable)Logs the given throwable under the given logging category at the tracing level.voidtrace(Object category, Throwable throwable, I18NMessage message, Object... params)Logs the given parameterized message and throwable under the given logging category at the tracing level.voidtrace(Object category, I18NMessage message, Object... params)Logs the given parameterized message under the given logging category at the tracing level.(package private) voidtraceProxy(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) voidtraceProxy(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) voidtraceProxy(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.voidwarn(Object category, Throwable throwable)Logs the given throwable under the given logging category at the warning level.voidwarn(Object category, Throwable throwable, I18NMessage message, Object... params)Logs the given parameterized message and throwable under the given logging category at the warning level.voidwarn(Object category, I18NMessage message, Object... params)Logs the given parameterized message under the given logging category at the warning level.(package private) voidwarnProxy(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) voidwarnProxy(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) voidwarnProxy(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
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
SELF_PROXY
private static final String SELF_PROXY
The logging proxy name used when none is explicitly specified.
-
mMessageProvider
private I18NMessageProvider mMessageProvider
-
-
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.
-
-