com.ibm.broker.plugin
Class MbService
- java.lang.Object
-
- com.ibm.broker.plugin.MbService
-
public class MbService extends java.lang.ObjectMbService contains static methods for writing information to the system log.
-
-
Constructor Summary
Constructors Constructor and Description MbService()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static voidlogError(java.lang.Object source, java.lang.String methodName, java.lang.String resourceBundleName, java.lang.String messageKey, java.lang.String traceText, java.lang.Object[] inserts)Writes a error/information/warning message to the event log (Windows) or the SYSLOG facility (other platforms).static voidlogError(java.lang.String className, java.lang.String methodName, java.lang.String resourceBundleName, java.lang.String messageKey, java.lang.String traceText, java.lang.Object[] inserts)Writes a error/information/warning message to the event log (Windows) or the SYSLOG facility (other platforms).static voidlogInformation(java.lang.Object source, java.lang.String methodName, java.lang.String resourceBundleName, java.lang.String messageKey, java.lang.String traceText, java.lang.Object[] inserts)Writes a error/information/warning message to the event log (Windows) or the SYSLOG facility (other platforms).static voidlogInformation(java.lang.String className, java.lang.String methodName, java.lang.String resourceBundleName, java.lang.String messageKey, java.lang.String traceText, java.lang.Object[] inserts)Writes a error/information/warning message to the event log (Windows) or the SYSLOG facility (other platforms).static voidlogUserDebugTrace(java.lang.Object source, java.lang.String methodName, java.lang.String resourceBundleName, java.lang.String messageKey, java.lang.String traceText, java.lang.String[] inserts)Writes a message to the user trace facility at the debug level.static voidlogUserTrace(java.lang.Object source, java.lang.String methodName, java.lang.String resourceBundleName, java.lang.String messageKey, java.lang.String traceText, java.lang.String[] inserts)Writes a message to the user trace facility.static voidlogWarning(java.lang.Object source, java.lang.String methodName, java.lang.String resourceBundleName, java.lang.String messageKey, java.lang.String traceText, java.lang.Object[] inserts)Writes a error/information/warning message to the event log (Windows) or the SYSLOG facility (other platforms).static voidlogWarning(java.lang.String className, java.lang.String methodName, java.lang.String resourceBundleName, java.lang.String messageKey, java.lang.String traceText, java.lang.Object[] inserts)Writes a error/information/warning message to the event log (Windows) or the SYSLOG facility (other platforms).
-
-
-
Method Detail
-
logError
public static void logError(java.lang.String className, java.lang.String methodName, java.lang.String resourceBundleName, java.lang.String messageKey, java.lang.String traceText, java.lang.Object[] inserts) throws MbExceptionWrites a error/information/warning message to the event log (Windows) or the SYSLOG facility (other platforms). 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:
MbException- If an exception occurred.
-
logInformation
public static void logInformation(java.lang.String className, java.lang.String methodName, java.lang.String resourceBundleName, java.lang.String messageKey, java.lang.String traceText, java.lang.Object[] inserts) throws MbExceptionWrites a error/information/warning message to the event log (Windows) or the SYSLOG facility (other platforms). 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:
MbException- If an exception occurred.
-
logWarning
public static void logWarning(java.lang.String className, java.lang.String methodName, java.lang.String resourceBundleName, java.lang.String messageKey, java.lang.String traceText, java.lang.Object[] inserts) throws MbExceptionWrites a error/information/warning message to the event log (Windows) or the SYSLOG facility (other platforms). 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:
MbException- If an exception occurred.
-
logError
public static void logError(java.lang.Object source, java.lang.String methodName, java.lang.String resourceBundleName, java.lang.String messageKey, java.lang.String traceText, java.lang.Object[] inserts) throws MbExceptionWrites a error/information/warning message to the event log (Windows) or the SYSLOG facility (other platforms). 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:
MbException- If an exception occurred.
-
logInformation
public static void logInformation(java.lang.Object source, java.lang.String methodName, java.lang.String resourceBundleName, java.lang.String messageKey, java.lang.String traceText, java.lang.Object[] inserts) throws MbExceptionWrites a error/information/warning message to the event log (Windows) or the SYSLOG facility (other platforms). 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:
MbException- If an exception occurred.
-
logWarning
public static void logWarning(java.lang.Object source, java.lang.String methodName, java.lang.String resourceBundleName, java.lang.String messageKey, java.lang.String traceText, java.lang.Object[] inserts) throws MbExceptionWrites a error/information/warning message to the event log (Windows) or the SYSLOG facility (other platforms). 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:
MbException- If an exception occurred.
-
logUserTrace
public static void logUserTrace(java.lang.Object source, java.lang.String methodName, java.lang.String resourceBundleName, java.lang.String messageKey, java.lang.String traceText, java.lang.String[] inserts) throws MbExceptionWrites a message to the user trace facility.- 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:
MbException- If an exception occurred.
-
logUserDebugTrace
public static void logUserDebugTrace(java.lang.Object source, java.lang.String methodName, java.lang.String resourceBundleName, java.lang.String messageKey, java.lang.String traceText, java.lang.String[] inserts) throws MbExceptionWrites a message to the user trace facility at the debug level.- 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:
MbException- If an exception occurred.
-
-