Package org.marketcetera.util.log
Class I18NMessageNP
- java.lang.Object
-
- org.marketcetera.util.log.I18NMessage
-
- org.marketcetera.util.log.I18NMessageNP
-
- All Implemented Interfaces:
Serializable
public class I18NMessageNP extends I18NMessage
An internationalized message, accepting an arbitrary number of parameters.- Since:
- 0.5.0
- Version:
- $Id: I18NMessageNP.java 17760 2018-11-14 14:54:11Z colin $
- Author:
- tlerios@marketcetera.com
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static StringSELF_PROXYThe logging proxy name.private static longserialVersionUID-
Fields inherited from class org.marketcetera.util.log.I18NMessage
UNKNOWN_ENTRY_ID
-
-
Constructor Summary
Constructors Constructor Description I18NMessageNP(I18NLoggerProxy loggerProxy, String messageId)Create a new I18NMessageNP instance.I18NMessageNP(I18NLoggerProxy loggerProxy, String messageId, String entryId)Create a new I18NMessageNP instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddebug(Object category, Object... ps)Log a debug message.voiddebug(Object category, Throwable throwable, Object... ps)Log a debug message.voiderror(Object category, Object... ps)Log an error message.voiderror(Object category, Throwable throwable, Object... ps)Log an error message.intgetParamCount()Returns the number of parameters the receiver expects.StringgetText(Object... ps)Get the text value.StringgetText(Locale locale, Object... ps)Get the text value.voidinfo(Object category, Object... ps)Log an info message.voidinfo(Object category, Throwable throwable, Object... ps)Log an info message.voidtrace(Object category, Object... ps)Log a trace message.voidtrace(Object category, Throwable throwable, Object... ps)Log a trace message.voidwarn(Object category, Object... ps)Log a warn message.voidwarn(Object category, Throwable throwable, Object... ps)Log a warn message.-
Methods inherited from class org.marketcetera.util.log.I18NMessage
equals, getEntryId, getLoggerProxy, getMessageId, getMessageProvider, hashCode
-
-
-
-
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.
-
-
Constructor Detail
-
I18NMessageNP
public I18NMessageNP(I18NLoggerProxy loggerProxy, String messageId, String entryId)
Create a new I18NMessageNP instance.- Parameters:
loggerProxy- anI18NLoggerProxyvaluemessageId- aStringvalueentryId- aStringvalue- See Also:
I18NMessage(I18NLoggerProxy,String,String)
-
I18NMessageNP
public I18NMessageNP(I18NLoggerProxy loggerProxy, String messageId)
Create a new I18NMessageNP instance.- Parameters:
loggerProxy- anI18NLoggerProxyvaluemessageId- aStringvalue- See Also:
I18NMessage(I18NLoggerProxy,String)
-
-
Method Detail
-
getParamCount
public int getParamCount()
Description copied from class:I18NMessageReturns the number of parameters the receiver expects.- Specified by:
getParamCountin classI18NMessage- Returns:
- The number of parameters; -1 indicates a variable number.
-
getText
public String getText(Locale locale, Object... ps)
Get the text value.- Parameters:
locale- aLocalevalueps- anObject...value- Returns:
- a
Stringvalue
-
getText
public String getText(Object... ps)
Get the text value.- Parameters:
ps- anObject...value- Returns:
- a
Stringvalue
-
error
public void error(Object category, Throwable throwable, Object... ps)
Log an error message.- Parameters:
category- anObjectvaluethrowable- aThrowablevalueps- anObject...value
-
error
public void error(Object category, Object... ps)
Log an error message.- Parameters:
category- anObjectvalueps- anObject...value
-
warn
public void warn(Object category, Throwable throwable, Object... ps)
Log a warn message.- Parameters:
category- anObjectvaluethrowable- aThrowablevalueps- anObject...value
-
warn
public void warn(Object category, Object... ps)
Log a warn message.- Parameters:
category- anObjectvalueps- anObject...value
-
info
public void info(Object category, Throwable throwable, Object... ps)
Log an info message.- Parameters:
category- anObjectvaluethrowable- aThrowablevalueps- anObject...value
-
info
public void info(Object category, Object... ps)
Log an info message.- Parameters:
category- anObjectvalueps- anObject...value
-
debug
public void debug(Object category, Throwable throwable, Object... ps)
Log a debug message.- Parameters:
category- anObjectvaluethrowable- aThrowablevalueps- anObject...value
-
debug
public void debug(Object category, Object... ps)
Log a debug message.- Parameters:
category- anObjectvalueps- anObject...value
-
trace
public void trace(Object category, Throwable throwable, Object... ps)
Log a trace message.- Parameters:
category- anObjectvaluethrowable- aThrowablevalueps- anObject...value
-
-