java.lang.Object com.ibm.broker.plugin.MbService
public class MbService
extends Object
MbService contains static methods for writing information to the system log.
Constructor | Description |
---|---|
MbService() |
Method | Description |
---|---|
void logError(Object, String, String, String, String, Object[]) | Writes an error message to the WMQI system log. |
void logError(String, String, String, String, String, Object[]) | Writes an error message to the WMQI system log. |
void logInformation(Object, String, String, String, String, Object[]) | Writes an information message to the WMQI system log. |
void logInformation(String, String, String, String, String, Object[]) | Writes an information message to the WMQI system log. |
void logWarning(Object, String, String, String, String, Object[]) | Writes a warning message to the WMQI system log. |
void logWarning(String, String, String, String, String, Object[]) | Writes a warning message to the WMQI system log. |
public MbService()
public static void logError(Object source, String methodName, String resourceBundleName, String messageKey, String traceText, Object[] inserts) throws MbExceptionWrites an error message to the WMQI system log. The message has the following format: BIP4362E: Java user-defined node error: [MessageSource:MessageKey] Full message with inserts resolved: traceText
- Parameters
- source - The object generating the log message.
- methodName - The name of the method generating the log message.
- resourceBundleName - The resource bundle name.
- messageKey - The key to the message in the ResourceBundle.
- traceText - The text that is extra to the message indicated by the key.
- inserts - Array of Objects that constitutes the inserts into the ResourceBundle message referenced by the messageKey.
- Throws
public static void logError(String className, String methodName, String resourceBundleName, String messageKey, String traceText, Object[] inserts) throws MbExceptionWrites an error message to the WMQI system log. The message has the following format: BIP4362E: Java user-defined node error: [MessageSource:MessageKey] Full message with inserts resolved: traceText
- Parameters
- className - The name of the class generating the log message.
- methodName - The name of the method generating the log message.
- resourceBundleName - The resource bundle name.
- messageKey - The key to the message in the ResourceBundle.
- traceText - The text that is extra to the message indicated by the key.
- inserts - Array of Objects that constitutes the inserts into the ResourceBundle message referenced by the messageKey.
- Throws
public static void logInformation(Object source, String methodName, String resourceBundleName, String messageKey, String traceText, Object[] inserts) throws MbExceptionWrites an information message to the WMQI system log. The message has the following format: BIP4360I: Java user-defined node information: [MessageSource:MessageKey] Full message with inserts resolved: traceText
- Parameters
- source - The object generating the log message.
- methodName - The name of the method generating the log message.
- resourceBundleName - The resource bundle name.
- messageKey - The key to the message in the ResourceBundle.
- traceText - The text that is extra to the message indicated by the key.
- inserts - Array of Objects that constitutes the inserts into the ResourceBundle message referenced by the messageKey.
- Throws
public static void logInformation(String className, String methodName, String resourceBundleName, String messageKey, String traceText, Object[] inserts) throws MbExceptionWrites an information message to the WMQI system log. The message has the following format: BIP4360I: Java user-defined node information: [MessageSource:MessageKey] Full message with inserts resolved: traceText
- Parameters
- className - The name of the class generating the log message.
- methodName - The name of the method generating the log message.
- resourceBundleName - The resource bundle name.
- messageKey - The key to the message in the ResourceBundle.
- traceText - The text that is extra to the message indicated by the key.
- inserts - Array of Objects that constitutes the inserts into the ResourceBundle message referenced by the messageKey.
- Throws
public static void logWarning(Object source, String methodName, String resourceBundleName, String messageKey, String traceText, Object[] inserts) throws MbExceptionWrites a warning message to the WMQI system log. The message has the following format: BIP4360W: Java user-defined node warning: [MessageSource:MessageKey] Full message with inserts resolved: traceText
- Parameters
- source - The object generating the log message.
- methodName - The name of the method generating the log message.
- resourceBundleName - The resource bundle name.
- messageKey - The key to the message in the ResourceBundle.
- traceText - The text that is extra to the message indicated by the key.
- inserts - Array of Objects that constitutes the inserts into the ResourceBundle message referenced by the messageKey.
- Throws
public static void logWarning(String className, String methodName, String resourceBundleName, String messageKey, String traceText, Object[] inserts) throws MbExceptionWrites a warning message to the WMQI system log. The message has the following format: BIP4361W: Java user-defined node warning: [MessageSource:MessageKey] Full message with inserts resolved: traceText
- Parameters
- className - The name of the class generating the log message.
- methodName - The name of the method generating the log message.
- resourceBundleName - The resource bundle name.
- messageKey - The key to the message in the ResourceBundle.
- traceText - The text that is extra to the message indicated by the key.
- inserts - Array of Objects that constitutes the inserts into the ResourceBundle message referenced by the messageKey.
- Throws