|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.wm.app.tn.err.SystemLog2
public class SystemLog2
Interface to Trading Networks logging. Provides a wrapper around externalized message descriptions in com.wm.app.tn.resources package, as well as methods for writing to the B2B server log and the TN Activity Log. Log messages are written with a "priority", just like B2B -- 1-9, with 1 being the highest (critical) and 9 being the lowest (debug only).
Field Summary | |
---|---|
static int |
ACT_IDX
|
static int |
CRITICAL
Code used to specify the severity level when logging a message. |
static int |
ERROR
|
static int |
FAC_DATABASE
|
static int |
FAC_DOCUMENT
|
static int |
FAC_EDI
|
static int |
FAC_GENERAL
|
static int |
FAC_PARTNER
|
static int |
FAC_QUERY
|
static int |
FAC_ROUTING
|
static int |
FAC_SECURITY
|
static int |
FAC_WEBMGR
|
static int |
INFO
|
static int |
LEV_IDX
|
static int |
MESSAGE
Informational message level for database logging |
static int |
MSG_IDX
Deprecated. |
static java.lang.String[] |
TYPE_NAMES
The set of message levels for database logging |
static int |
UNKNOWN
Unknown message level |
static int |
WARNING
|
Constructor Summary | |
---|---|
SystemLog2()
|
Method Summary | |
---|---|
static java.lang.String |
clientFormat(int facilityCode,
int minor)
Lookup a specific message from resource bundles. |
static java.lang.String |
clientFormat(int facilityCode,
int minor,
java.lang.Object arg1)
Lookup a specific message from resource bundles. |
static java.lang.String |
clientFormat(int facilityCode,
int minor,
java.lang.Object[] args)
Lookup a specific message from resource bundles. |
static java.lang.String |
clientFormat(int facilityCode,
int minor,
java.lang.Object arg1,
java.lang.Object arg2)
Lookup a specific message from resource bundles. |
static java.lang.String |
clientFormat(int facilityCode,
int minor,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3)
Lookup a specific message from resource bundles. |
static java.lang.String |
clientFormat(int facilityCode,
int minor,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3,
java.lang.Object arg4)
Lookup a specific message from resource bundles. |
static java.lang.String |
clientFormat(int facilityCode,
int minor,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3,
java.lang.Object arg4,
java.lang.Object arg5)
Lookup a specific message from resource bundles. |
static int |
dbLog(ActivityLogEntry e)
Log a message to the system database. |
static void |
dbLog(int type,
java.lang.String brief,
java.lang.String full,
java.lang.String doc,
java.lang.String partner)
Log a message to the system database. |
static java.lang.String |
doFormat(int facilityCode,
int minor,
boolean isServer,
java.lang.Object[] args)
|
static java.lang.String |
format(int facilityCode,
int minor)
Deprecated. as of Trading Networks 7.1, replaced by clientFormat and serverFormat |
static java.lang.String |
format(int facilityCode,
int minor,
java.lang.Object arg1)
Deprecated. as of Trading Networks 7.1, replaced by clientFormat and serverFormat |
static java.lang.String |
format(int facilityCode,
int minor,
java.lang.Object[] args)
Deprecated. as of Trading Networks 7.1, replaced by clientFormat and serverFormat |
static java.lang.String |
format(int facilityCode,
int minor,
java.lang.Object arg1,
java.lang.Object arg2)
Deprecated. as of Trading Networks 7.1, replaced by clientFormat and serverFormat |
static java.lang.String |
format(int facilityCode,
int minor,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3)
Deprecated. as of Trading Networks 7.1, replaced by clientFormat and serverFormat |
static java.lang.String |
format(int facilityCode,
int minor,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3,
java.lang.Object arg4)
Deprecated. as of Trading Networks 7.1, replaced by clientFormat and serverFormat |
static java.lang.String |
format(int facilityCode,
int minor,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3,
java.lang.Object arg4,
java.lang.Object arg5)
Deprecated. as of Trading Networks 7.1, replaced by clientFormat and serverFormat |
static java.util.Locale |
getDefaultLocale()
|
static java.lang.String |
getMessage(int facilityCode,
int minor)
Deprecated. as of Trading Networks 7.1, replaced by getMessage with three args |
static java.lang.String |
getMessage(int facilityCode,
int minor,
boolean isServer)
Returns the unformatted message text for the supplied message key. |
static java.lang.String |
getMessage(java.lang.Throwable t)
Returns the supplied exception's message formatted along with the class name (this helps when the message is skimpy or not there). |
static java.lang.String |
getResource(int facilityCode,
int minor)
|
static java.lang.String |
getStackTrace(java.lang.Throwable t)
Returns a string representation of the stack trace of an exception. |
static void |
init_silent()
For internal use only |
static void |
init(java.util.Locale loc)
For internal use only |
static void |
log(int severity,
int facilityCode,
int minor)
Generates a journal log entry with the given severity level, facility code, and minor code. |
static void |
log(int severity,
int facilityCode,
int minor,
java.lang.String arg)
Generates a journal log entry with the given severity level, facility code, minor code, and insertion argument. |
static void |
log(int severity,
int facilityCode,
int minor,
java.lang.String[] args)
Generates a journal log entry with the given severity level, facility code, minor code, and insertion arguments. |
static void |
log(int severity,
int facilityCode,
int minor,
java.lang.String[] args,
java.lang.String defaultText)
Generates a journal log entry with the given severity level, facility code, minor code, insertion arguments, and some default text if the minor code is not found in the ResourceBundle. |
static void |
log(int severity,
java.lang.String defaultMessage)
Generates a journal log entry with the given severity level and some default text. |
static void |
log(int priority,
java.lang.Throwable thr)
Log an exception to the normal B2B server log. |
static void |
logCritical(int facilityCode,
int minor)
Generates a Critical-level journal log entry with the given facility code, minor code. |
static void |
logCritical(int facilityCode,
int minor,
java.lang.String arg)
Generates a Critical-level journal log entry with the given facility code, minor code and insertion argument. |
static void |
logCritical(int facilityCode,
int minor,
java.lang.String[] args)
Generates a Critical-level journal log entry with the given facility code, minor code and insertion arguments. |
static void |
logCritical(int facilityCode,
int minor,
java.lang.String[] args,
java.lang.String defaultMessage)
Generates a Critical-level journal log entry with the given facility code, minor code, insertion arguments and some default text in case the minor code is not found in the ResourceBundle. |
static void |
logCritical(int facilityCode,
int minor,
java.lang.String arg1,
java.lang.String arg2)
Generates a Critical-level journal log entry with the given facility code, minor code and insertion argument. |
static void |
logCritical(java.lang.String defaultMessage)
Generates a Critical-level journal log entry with the given defaultMessage. |
static void |
logCritical(java.lang.Throwable thr)
Log an Critical-exception to the normal B2B server log. |
static void |
logError(int facilityCode,
int minor)
Generates an Error-level journal log entry with the given facility code and minor code. |
static void |
logError(int facilityCode,
int minor,
java.lang.String arg)
Generates an Error-level journal log entry with the given facility code, minor code and insertion argument. |
static void |
logError(int facilityCode,
int minor,
java.lang.String[] args)
Generates an Error-level journal log entry with the given facility code, minor code and insertion arguments. |
static void |
logError(int facilityCode,
int minor,
java.lang.String[] args,
java.lang.String defaultMessage)
Generates an Error-level journal log entry with the given facility code, minor code, insertion arguments and some default text in case the minor code is not found in the ResourceBundle. |
static void |
logError(java.lang.String defaultMessage)
Generates a Error-level journal log entry with the given defaultMessage. |
static void |
logError(java.lang.Throwable thr)
Log an Error-exception to the normal B2B server log. |
static void |
logInfo(int facilityCode,
int minor)
Generates an informational-level journal log entry with the given facility code and minor code. |
static void |
logInfo(int facilityCode,
int minor,
java.lang.String arg)
Generates an informational-level journal log entry with the given facility code, minor code and insertion argument. |
static void |
logInfo(int facilityCode,
int minor,
java.lang.String[] args)
Generates an informational-level journal log entry with the given facility code, minor code and insertion arguments. |
static void |
logInfo(int facilityCode,
int minor,
java.lang.String[] args,
java.lang.String defaultMessage)
Generates an informational-level journal log entry with the given facility code, minor code, insertion arguments and some default text in case the minor code is not found in the ResourceBundle. |
static void |
logInfo(int facilityCode,
int minor,
java.lang.String arg1,
java.lang.String arg2)
Generates an informational-level journal log entry with the given facility code, minor code and insertion argument. |
static void |
logInfo(int facilityCode,
int minor,
java.lang.String arg1,
java.lang.String arg2,
java.lang.String arg3)
Generates an informational-level journal log entry with the given facility code, minor code and insertion argument. |
static void |
logInfo(java.lang.String defaultMessage)
Generates a Info-level journal log entry with the given defaultMessage. |
static void |
logInfo(java.lang.Throwable thr)
Log an Info-exception to the normal B2B server log. |
static void |
logWarning(int facilityCode,
int minor)
Generates a Warning-level journal log entry with the given facility code and minor code. |
static void |
logWarning(int facilityCode,
int minor,
java.lang.String arg)
Generates a Warning-level journal log entry with the given facility code, minor code and insertion argument. |
static void |
logWarning(int facilityCode,
int minor,
java.lang.String[] args)
Generates a Warning-level journal log entry with the given facility code, minor code and insertion arguments |
static void |
logWarning(int facilityCode,
int minor,
java.lang.String[] args,
java.lang.String defaultMessage)
Generates a Warning-level journal log entry with the given facility code, minor code, insertion arguments and some default text in case the minor code is not found in the ResourceBundle. |
static void |
logWarning(int facilityCode,
int minor,
java.lang.String arg1,
java.lang.String arg2)
Generates a Warning-level journal log entry with the given facility code, minor code and insertion argument. |
static void |
logWarning(int facilityCode,
int minor,
java.lang.String arg1,
java.lang.String arg2,
java.lang.String arg3)
Generates a Warning-level journal log entry with the given facility code, minor code and insertion argument. |
static void |
logWarning(java.lang.String defaultMessage)
Generates a Warning-level journal log entry with the given defaultMessage. |
static void |
logWarning(java.lang.Throwable thr)
Log an Warning-exception to the normal B2B server log. |
static void |
main(java.lang.String[] args)
For internal use only |
static java.lang.String |
report(int facilityCode,
int minor,
com.wm.data.IData pipe)
Run a webMethods Reporter token on the supplied pipeline. |
static java.lang.String |
serverFormat(int facilityCode,
int minor)
Lookup a specific message from resource bundles. |
static java.lang.String |
serverFormat(int facilityCode,
int minor,
java.lang.Object arg1)
Lookup a specific message from resource bundles. |
static java.lang.String |
serverFormat(int facilityCode,
int minor,
java.lang.Object[] args)
Lookup a specific message from resource bundles. |
static java.lang.String |
serverFormat(int facilityCode,
int minor,
java.lang.Object arg1,
java.lang.Object arg2)
Lookup a specific message from resource bundles. |
static java.lang.String |
serverFormat(int facilityCode,
int minor,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3)
Lookup a specific message from resource bundles. |
static java.lang.String |
serverFormat(int facilityCode,
int minor,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3,
java.lang.Object arg4)
Lookup a specific message from resource bundles. |
static java.lang.String |
serverFormat(int facilityCode,
int minor,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3,
java.lang.Object arg4,
java.lang.Object arg5)
Lookup a specific message from resource bundles. |
static void |
testInit()
For internal use only |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MESSAGE
public static final int UNKNOWN
public static final java.lang.String[] TYPE_NAMES
public static final int CRITICAL
public static final int ERROR
public static final int WARNING
public static final int INFO
public static final int FAC_DATABASE
public static final int FAC_DOCUMENT
public static final int FAC_GENERAL
public static final int FAC_PARTNER
public static final int FAC_QUERY
public static final int FAC_ROUTING
public static final int FAC_SECURITY
public static final int FAC_WEBMGR
public static final int FAC_EDI
public static final int MSG_IDX
public static final int ACT_IDX
public static final int LEV_IDX
Constructor Detail |
---|
public SystemLog2()
Method Detail |
---|
public static java.util.Locale getDefaultLocale()
public static void init_silent()
public static void testInit()
public static void init(java.util.Locale loc) throws java.lang.Exception
java.lang.Exception
public static java.lang.String getResource(int facilityCode, int minor)
public static java.lang.String getMessage(int facilityCode, int minor, boolean isServer)
facilityCode
- An int representing the facility code for this message.minor
- An int representing the minor code for this message.isServer
- A boolean: True will format the message with the default TNServer Locale.public static java.lang.String getMessage(int facilityCode, int minor)
getMessage(int facilityCode, int minor, boolean isServer)
public static java.lang.String getMessage(java.lang.Throwable t)
t
- the exception in question
public static java.lang.String getStackTrace(java.lang.Throwable t)
t
- the exception in question
public static java.lang.String report(int facilityCode, int minor, com.wm.data.IData pipe)
%ifvar%, etc.
facilityCode
- An int representing the facility code for this message.minor
- An int representing the minor code for this message.pipe
- the inputs to the reporter
public static java.lang.String format(int facilityCode, int minor)
serverFormat(int facilityCode, int minor)
,
clientFormat(int facilityCode, int minor)
public static java.lang.String serverFormat(int facilityCode, int minor)
facilityCode
- An int representing the facility code for the message.minor
- An int representing the minor code for the message.public static java.lang.String clientFormat(int facilityCode, int minor)
facilityCode
- An int representing the facility code for the message.minor
- An int representing the minor code for the message.public static java.lang.String format(int facilityCode, int minor, java.lang.Object arg1)
serverFormat(int facilityCode, int minor, Object arg1)
,
clientFormat(int facilityCode, int minor, Object arg1)
public static java.lang.String serverFormat(int facilityCode, int minor, java.lang.Object arg1)
facilityCode
- An int representing the facility code for the message.minor
- An int representing the minor code for the message.arg1
- an argument to the message
public static java.lang.String clientFormat(int facilityCode, int minor, java.lang.Object arg1)
facilityCode
- An int representing the facility code for the message.minor
- An int representing the minor code for the message.arg1
- an argument to the message
public static java.lang.String format(int facilityCode, int minor, java.lang.Object arg1, java.lang.Object arg2)
serverFormat(int facilityCode, int minor, Object arg1, Object arg2)
,
clientFormat(int facilityCode, int minor, Object arg1, Object arg2)
public static java.lang.String serverFormat(int facilityCode, int minor, java.lang.Object arg1, java.lang.Object arg2)
facilityCode
- An int representing the facility code for the message.minor
- An int representing the minor code for the message.arg1
- an argument to the messagearg2
- an argument to the message
public static java.lang.String clientFormat(int facilityCode, int minor, java.lang.Object arg1, java.lang.Object arg2)
facilityCode
- An int representing the facility code for the message.minor
- An int representing the minor code for the message.arg1
- an argument to the messagearg2
- an argument to the message
public static java.lang.String format(int facilityCode, int minor, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3)
serverFormat(int facilityCode, int minor, Object arg1, Object arg2, Object arg3)
,
clientFormat(int facilityCode, int minor, Object arg1, Object arg2, Object arg3)
public static java.lang.String serverFormat(int facilityCode, int minor, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3)
facilityCode
- An int representing the facility code for the message.minor
- An int representing the minor code for the message.arg1
- an argument to the messagearg2
- an argument to the messagearg3
- an argument to the message
public static java.lang.String clientFormat(int facilityCode, int minor, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3)
facilityCode
- An int representing the facility code for the message.minor
- An int representing the minor code for the message.arg1
- an argument to the messagearg2
- an argument to the messagearg3
- an argument to the message
public static java.lang.String format(int facilityCode, int minor, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3, java.lang.Object arg4)
serverFormat(int facilityCode, int minor, Object arg1, Object arg2, Object arg3, Object arg4)
,
clientFormat(int facilityCode, int minor, Object arg1, Object arg2, Object arg3, Object arg4)
public static java.lang.String serverFormat(int facilityCode, int minor, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3, java.lang.Object arg4)
facilityCode
- An int representing the facility code for the message.minor
- An int representing the minor code for the message.arg1
- an argument to the messagearg2
- an argument to the messagearg3
- an argument to the messagearg4
- an argument to the message
public static java.lang.String clientFormat(int facilityCode, int minor, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3, java.lang.Object arg4)
facilityCode
- An int representing the facility code for the message.minor
- An int representing the minor code for the message.arg1
- an argument to the messagearg2
- an argument to the messagearg3
- an argument to the messagearg4
- an argument to the message
public static java.lang.String format(int facilityCode, int minor, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3, java.lang.Object arg4, java.lang.Object arg5)
serverFormat(int facilityCode, int minor, Object arg1, Object arg2, Object arg3, Object arg4, Object arg5)
,
clientFormat(int facilityCode, int minor, Object arg1, Object arg2, Object arg3, Object arg4, Object arg5)
public static java.lang.String serverFormat(int facilityCode, int minor, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3, java.lang.Object arg4, java.lang.Object arg5)
facilityCode
- An int representing the facility code for the message.minor
- An int representing the minor code for the message.arg1
- an argument to the messagearg2
- an argument to the messagearg3
- an argument to the messagearg4
- an argument to the messagearg5
- an argument to the message
public static java.lang.String clientFormat(int facilityCode, int minor, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3, java.lang.Object arg4, java.lang.Object arg5)
facilityCode
- An int representing the facility code for the message.minor
- An int representing the minor code for the message.arg1
- an argument to the messagearg2
- an argument to the messagearg3
- an argument to the messagearg4
- an argument to the messagearg5
- an argument to the message
public static java.lang.String format(int facilityCode, int minor, java.lang.Object[] args)
serverFormat(int facilityCode, int minor, Object[] args)
,
clientFormat(int facilityCode, int minor, Object[] args)
public static java.lang.String serverFormat(int facilityCode, int minor, java.lang.Object[] args)
facilityCode
- An int representing the facility code for the message.minor
- An int representing the minor code for the message.args
- arguments to the message (may be null)
public static java.lang.String clientFormat(int facilityCode, int minor, java.lang.Object[] args)
facilityCode
- An int representing the facility code for the message.minor
- An int representing the minor code for the message.args
- arguments to the message (may be null)
public static java.lang.String doFormat(int facilityCode, int minor, boolean isServer, java.lang.Object[] args)
public static void log(int priority, java.lang.Throwable thr)
priority
- the priority of this messagethr
- the exception being loggedpublic static void log(int severity, int facilityCode, int minor, java.lang.String[] args, java.lang.String defaultText)
severity
- An int representing the requested journal log level.CRITICAL
,
ERROR
, WARNING
.facilityCode
- An int representing the facility code for this message.minor
- An int representing the minor code for this message.args
- An array of Strings that will be used as insertion parameters for the journal entry.defaultText
- A String to be used as the default message if the requested minor code is not found in the
ResourceBundle.public static void log(int severity, int facilityCode, int minor, java.lang.String[] args)
severity
- An int representing the requested journal log level.facilityCode
- An int representing the facility code for this message.minor
- An int representing the minor code for this message.args
- An array of Strings that will be used as insertion parameters for the journal entry.public static void log(int severity, int facilityCode, int minor, java.lang.String arg)
severity
- An int representing the requested journal log level.facilityCode
- An int representing the facility code for this message.minor
- An int representing the minor code for this message.arg
- A String that will be used as an insertion parameter for the journal entry.public static void log(int severity, int facilityCode, int minor)
severity
- An int representing the requested journal log level.facilityCode
- An int representing the facility code for this message.minor
- An int representing the minor code for this message.public static void log(int severity, java.lang.String defaultMessage)
severity
- An int representing the requested journal log level.defaultMessage
- A String to be used as the default message if the requested minor code is not found in the
ResourceBundle.public static void logCritical(int facilityCode, int minor, java.lang.String[] args, java.lang.String defaultMessage)
facilityCode
- An int representing the facility code for this message.minor
- An int representing the minor code for this message.args
- An array of Strings that will be used as insertion parameters for the journal entry.defaultMessage
- A String to be used as the default message if the requested minor code is not found in the
ResourceBundle.public static void logCritical(int facilityCode, int minor, java.lang.String[] args)
facilityCode
- An int representing the facility code for this message.minor
- An int representing the minor code for this message.args
- An array of Strings that will be used as insertion parameters for the journal entry.public static void logCritical(int facilityCode, int minor, java.lang.String arg)
facilityCode
- An int representing the facility code for this message.minor
- An int representing the minor code for this message.arg
- A String that will be used as insertion parameters for the journal entry.public static void logCritical(int facilityCode, int minor, java.lang.String arg1, java.lang.String arg2)
facilityCode
- An int representing the facility code for this message.minor
- An int representing the minor code for this message.arg1
- A String that will be used as insertion parameters for the journal entry.arg2
- A String that will be used as insertion parameters for the journal entry.public static void logCritical(int facilityCode, int minor)
facilityCode
- An int representing the facility code for this message.minor
- An int representing the minor code for this message.public static void logCritical(java.lang.String defaultMessage)
defaultMessage
- String to be used as the default message.public static void logCritical(java.lang.Throwable thr)
thr
- the exception being loggedpublic static void logError(int facilityCode, int minor, java.lang.String[] args, java.lang.String defaultMessage)
facilityCode
- An int representing the facility code for this message.minor
- An int representing the minor code for this message.args
- An array of Strings that will be used as insertion parameters for the journal entry.defaultMessage
- String to be used as the default message if the requested minor code is not found in the
ResourceBundle.public static void logError(int facilityCode, int minor, java.lang.String[] args)
facilityCode
- An int representing the facility code for this message.minor
- An int representing the minor code for this message.args
- An array of Strings that will be used as insertion parameters for the journal entry.public static void logError(int facilityCode, int minor, java.lang.String arg)
facilityCode
- An int representing the facility code for this message.minor
- An int representing the minor code for this message.arg
- A String that will be used as insertion parameters for the journal entry.public static void logError(int facilityCode, int minor)
facilityCode
- An int representing the facility code for this message.minor
- An int representing the minor code for this message.public static void logError(java.lang.String defaultMessage)
defaultMessage
- String to be used as the default message.public static void logError(java.lang.Throwable thr)
thr
- the exception being loggedpublic static void logWarning(int facilityCode, int minor, java.lang.String[] args, java.lang.String defaultMessage)
facilityCode
- An int representing the facility code for this message.minor
- An int representing the minor code for this message.args
- An array of Strings that will be used as insertion parameters for the journal entry.defaultMessage
- String to be used as the default message if the requested minor code is not found in the
ResourceBundle.public static void logWarning(int facilityCode, int minor, java.lang.String[] args)
facilityCode
- An int representing the facility code for this message.minor
- An int representing the minor code for this message.args
- An array of Strings that will be used as insertion parameters for the journal entry.public static void logWarning(int facilityCode, int minor, java.lang.String arg)
facilityCode
- An int representing the facility code for this message.minor
- An int representing the minor code for this message.arg
- A String that will be used as an insertion parameter for the journal entry.public static void logWarning(int facilityCode, int minor, java.lang.String arg1, java.lang.String arg2)
facilityCode
- An int representing the facility code for this message.minor
- An int representing the minor code for this message.arg1
- A String that will be used as an insertion parameter for the journal entry.arg2
- A String that will be used as an insertion parameter for the journal entry.public static void logWarning(int facilityCode, int minor, java.lang.String arg1, java.lang.String arg2, java.lang.String arg3)
facilityCode
- An int representing the facility code for this message.minor
- An int representing the minor code for this message.arg1
- A String that will be used as an insertion parameter for the journal entry.arg2
- A String that will be used as an insertion parameter for the journal entry.arg3
- A String that will be used as an insertion parameter for the journal entry.public static void logWarning(int facilityCode, int minor)
facilityCode
- An int representing the facility code for this message.minor
- An int representing the minor code for this message.public static void logWarning(java.lang.String defaultMessage)
defaultMessage
- String to be used as the default message.public static void logWarning(java.lang.Throwable thr)
thr
- the exception being loggedpublic static void logInfo(int facilityCode, int minor, java.lang.String[] args, java.lang.String defaultMessage)
facilityCode
- An int representing the facility code for this message.minor
- An int representing the minor code for this message.args
- An array of Strings that will be used as insertion parameters for the journal entry.defaultMessage
- String to be used as the default message if the requested minor code is not found in the
ResourceBundle.public static void logInfo(int facilityCode, int minor, java.lang.String[] args)
facilityCode
- An int representing the facility code for this message.minor
- An int representing the minor code for this message.args
- An array of Strings that will be used as insertion parameters for the journal entry.public static void logInfo(int facilityCode, int minor, java.lang.String arg)
facilityCode
- An int representing the facility code for this message.minor
- An int representing the minor code for this message.arg
- A String that will be used as an insertion parameter for the journal entry.public static void logInfo(int facilityCode, int minor, java.lang.String arg1, java.lang.String arg2)
facilityCode
- An int representing the facility code for this message.minor
- An int representing the minor code for this message.arg1
- A String that will be used as an insertion parameter for the journal entry.arg2
- A String that will be used as an insertion parameter for the journal entry.public static void logInfo(int facilityCode, int minor, java.lang.String arg1, java.lang.String arg2, java.lang.String arg3)
facilityCode
- An int representing the facility code for this message.minor
- An int representing the minor code for this message.arg1
- A String that will be used as an insertion parameter for the journal entry.arg2
- A String that will be used as an insertion parameter for the journal entry.arg3
- A String that will be used as an insertion parameter for the journal entry.public static void logInfo(int facilityCode, int minor)
facilityCode
- An int representing the facility code for this message.minor
- An int representing the minor code for this message.public static void logInfo(java.lang.String defaultMessage)
defaultMessage
- String to be used as the default message.public static void logInfo(java.lang.Throwable thr)
thr
- the exception being loggedpublic static void dbLog(int type, java.lang.String brief, java.lang.String full, java.lang.String doc, java.lang.String partner)
type
- what type of message (ERROR, WARNING or MESSAGE)brief
- a brief summary messagefull
- the full text of the message (can be null)doc
- related doc ID (can be null)partner
- related partner ID (can be null)public static int dbLog(ActivityLogEntry e)
e
- an activity log event
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |