|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sap.mdm.logging.MdmLogger
MdmLogger is class that is intended for logging messages for specific class or component.
MdmLogger offers convenient methods for creating loggers and for logging messages with the different log levels. These methods are named after sap logger severity level names (like info, warning, error).
| Field Summary | |
static int |
SAP_LOGGER_TYPE
A constant for sap logger type |
static int |
SUN_LOGGER_TYPE
A constant for sun logger type |
| Method Summary | |
boolean |
beDebug()
Check if a message of severity Level.FINEST if SUN logger or Severity.DEBUG
if SAP logger would actually be logged or traced by the logger.
|
boolean |
beError()
Check if a message of severity Level.SEVERE if SUN logger and Severity.ERROR
if SAP logger would actually be logged or traced by the logger.
|
boolean |
beFatal()
Check if a message of severity Level.SEVERE if SUN logger and Severity.FATAL
if SAP logger would actually be logged or traced by the logger.
|
boolean |
beInfo()
Check if a message of severity Level.INFO if SUN logger and Severity.INFO
if SAP logger would actually be logged or traced by the logger.
|
boolean |
bePath()
Check if a message of severity Level.FINER in SUN logger or Severity.PATH
in SAP logger would actually be logged or traced by the logger.
|
boolean |
beWarning()
Check if a message of severity Level.WARNING if SUN logger and Severity.WARNINIG
if SAP logger would actually be logged or traced by the logger.
|
void |
debug(String msg)
Log a debug message. |
void |
debug(String msg,
Object[] params)
Log a debug message. |
void |
debug(String sourceMethod,
String msg)
Log a debug message. |
void |
debug(String sourceMethod,
String msg,
Object[] params,
Throwable thrown)
Log a debug message. |
void |
debug(String sourceMethod,
String msg,
Throwable thrown)
Log a debug message. |
void |
debug(String msg,
Throwable thrown)
Log a debug message. |
void |
entering(String sourceMethod)
Log a method entry. |
void |
entering(String sourceMethod,
Object param)
Log a method entry, with one parameter. |
void |
entering(String sourceMethod,
Object[] params)
Log a method entry, with an array of parameters. |
void |
entering(String sourceClass,
String sourceMethod,
Object param1)
Deprecated. use entering(String sourceMethod, Object param1) Log a method entry, with an array of parameters. This is a convenience method that can be used to log entry to a method.
Logs the message with severity |
void |
entering(String sourceClass,
String sourceMethod,
Object[] params)
Deprecated. use entering(String sourceMethod, Object params[]) Log a method entry, with an array of parameters. This is a convenience method that can be used to log entry to a method.
Logs the message with severity |
void |
error(String msg)
Log a error message. |
void |
error(String msg,
boolean traceOnly)
Log a error message. |
void |
error(String msg,
Object[] params)
Log a error message. |
void |
error(String msg,
Object[] params,
boolean traceOnly)
Log a error message. |
void |
error(String sourceMethod,
String msg)
Log a error message. |
void |
error(String sourceMethod,
String msg,
boolean traceOnly)
Log a error message. |
void |
error(String sourceMethod,
String msg,
Object[] params,
Throwable thrown)
Log a error message. |
void |
error(String sourceMethod,
String msg,
Object[] params,
Throwable thrown,
boolean traceOnly)
Log a error message. |
void |
error(String sourceMethod,
String msg,
Throwable thrown)
Log a error message. |
void |
error(String sourceMethod,
String msg,
Throwable thrown,
boolean traceOnly)
Log a error message. |
void |
error(String msg,
Throwable thrown)
Log a error message. |
void |
error(String msg,
Throwable thrown,
boolean traceOnly)
Log a error message. |
void |
exiting(String sourceMethod)
Log a method return. |
void |
exiting(String sourceMethod,
Object result)
Log a method return, with result object. |
void |
fatal(String msg)
Log a error message. |
void |
fatal(String msg,
boolean traceOnly)
Log a error message. |
void |
fatal(String msg,
Object[] params)
Log a error message. |
void |
fatal(String msg,
Object[] params,
boolean traceOnly)
Log a error message. |
void |
fatal(String sourceMethod,
String msg)
Log a error message. |
void |
fatal(String sourceMethod,
String msg,
boolean traceOnly)
Log a error message. |
void |
fatal(String sourceMethod,
String msg,
Object[] params,
Throwable thrown)
Log a error message. |
void |
fatal(String sourceMethod,
String msg,
Object[] params,
Throwable thrown,
boolean traceOnly)
Log a error message. |
void |
fatal(String sourceMethod,
String msg,
Throwable thrown)
Log a error message. |
void |
fatal(String sourceMethod,
String msg,
Throwable thrown,
boolean traceOnly)
Log a error message. |
void |
fatal(String msg,
Throwable thrown)
Log a error message. |
void |
fatal(String msg,
Throwable thrown,
boolean traceOnly)
Log a error message. |
static Logger |
getJavaLogger(Class clazz)
Returns the original instance of java.util.logging.Logger in order to expose the
full functionality of Logger class. |
static Logger |
getJavaLogger(String loggerName)
Returns the original instance of java.util.logging.Logger in order to expose the
full functionality of Logger class. |
static MdmLogger |
getLogger(Class clazz)
Create a logger for the specified class. |
static MdmLogger |
getLogger(String name)
Create a logger for a named subsystem. |
static MdmLogger |
getSunLogger(Class clazz)
Create a logger wrapping a standard SUN Java logger for the specified class. |
static MdmLogger |
getSunLogger(String name)
Create a logger wrapping a standard SUN Java logger for a named subsystem. |
int |
getType()
Returns the type of logger. |
void |
info(String msg)
Log a info message. |
void |
info(String msg,
boolean traceOnly)
Log a info message. |
void |
info(String msg,
Object[] params)
Log a info message. |
void |
info(String msg,
Object[] params,
boolean traceOnly)
Log a info message. |
void |
info(String sourceMethod,
String msg)
Log a info message. |
void |
info(String sourceMethod,
String msg,
boolean traceOnly)
Log a info message. |
void |
info(String sourceMethod,
String msg,
Object[] params,
Throwable thrown)
Log a info message. |
void |
info(String sourceMethod,
String msg,
Object[] params,
Throwable thrown,
boolean traceOnly)
Log a info message. |
void |
info(String sourceMethod,
String msg,
Throwable thrown)
Log a info message. |
void |
info(String sourceMethod,
String msg,
Throwable thrown,
boolean traceOnly)
Log a info message. |
void |
info(String msg,
Throwable thrown)
Log a info message and associated Throwable information. |
void |
info(String msg,
Throwable thrown,
boolean traceOnly)
Log a info message and associated Throwable information. |
void |
path(String msg)
Log a path message. |
void |
path(String msg,
Object[] params)
Log a path message. |
void |
path(String sourceMethod,
String msg)
Log a path message. |
void |
path(String sourceMethod,
String msg,
Object[] params,
Throwable thrown)
Log a path message. |
void |
path(String sourceMethod,
String msg,
Throwable thrown)
Log a path message. |
void |
path(String msg,
Throwable thrown)
Log a path message. |
void |
warning(String msg)
Log a warning message. |
void |
warning(String msg,
boolean traceOnly)
Log a warning message. |
void |
warning(String msg,
Object[] params)
Log a warning message. |
void |
warning(String msg,
Object[] params,
boolean traceOnly)
Log a warning message. |
void |
warning(String sourceMethod,
String msg)
Log a warning message. |
void |
warning(String sourceMethod,
String msg,
boolean traceOnly)
Log a warning message. |
void |
warning(String sourceMethod,
String msg,
Object[] params,
Throwable thrown)
Log a warning message. |
void |
warning(String sourceMethod,
String msg,
Object[] params,
Throwable thrown,
boolean traceOnly)
Log a warning message. |
void |
warning(String sourceMethod,
String msg,
Throwable thrown)
Log a warning message. |
void |
warning(String sourceMethod,
String msg,
Throwable thrown,
boolean traceOnly)
Log a warning message. |
void |
warning(String msg,
Throwable thrown)
Log a warning message with associated Throwable information. |
void |
warning(String msg,
Throwable thrown,
boolean traceOnly)
Log a warning message with associated Throwable information. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int SUN_LOGGER_TYPE
public static final int SAP_LOGGER_TYPE
| Method Detail |
public static MdmLogger getLogger(String name)
name - A name for the logger. This should
be a dot-separated name and should normally
be based on the package name or class name
of the subsystem, such as java.net
or javax.swing
public static MdmLogger getLogger(Class clazz)
clazz - A class for the logger.
public static MdmLogger getSunLogger(String name)
name - A name for the logger. This should
be a dot-separated name and should normally
be based on the package name or class name
of the subsystem, such as java.net
or javax.swing
public static MdmLogger getSunLogger(Class clazz)
clazz - A class for the logger.
public static Logger getJavaLogger(String loggerName)
java.util.logging.Logger in order to expose the
full functionality of Logger class.
loggerName - A name for the logger. This should
be a dot-separated name and should normally
be based on the package name or class name
of the subsystem, such as java.net.Socket
or javax.swing
public static Logger getJavaLogger(Class clazz)
java.util.logging.Logger in order to expose the
full functionality of Logger class.
clazz - A class for the logger.
public void entering(String sourceMethod)
This is a convenience method that can be used to log entry to a method.
Logs the message with severity Severity.PATH if SAP logger is used
and with log severity Level.FINER if SUN logger is used.
sourceMethod - name of method that is being entered
public void entering(String sourceMethod,
Object param)
This is a convenience method that can be used to log entry to a method.
Logs the message with severity Severity.PATH if SAP logger is used
and with log severity Level.FINER if SUN logger is used.
sourceMethod - name of method that is being enteredparam - parameter to the method being entered
public void entering(String sourceMethod,
Object[] params)
This is a convenience method that can be used to log entry to a method.
Logs the message with severity Severity.PATH if SAP logger is used
and with log severity Level.FINER if SUN logger is used.
sourceMethod - name of method that is being enteredparams - array of parameters to the method being entered
public void entering(String sourceClass,
String sourceMethod,
Object param1)
This is a convenience method that can be used to log entry to a method.
Logs the message with severity Severity.PATH if SAP logger is used
and with log severity Level.FINER if SUN logger is used.
sourceClass - name of class which method is being enteredsourceMethod - name of method that is being enteredparam1 - parameter to the method being entered
public void entering(String sourceClass,
String sourceMethod,
Object[] params)
This is a convenience method that can be used to log entry to a method.
Logs the message with severity Severity.PATH if SAP logger is used
and with log severity Level.FINER if SUN logger is used.
sourceClass - name of class which method is being enteredsourceMethod - name of method that is being enteredparams - array of parameters to the method being enteredpublic void exiting(String sourceMethod)
This is a convenience method that can be used to log returning from a method.
Since every entering method should have matching exiting method it is recommended to use finally block for logging exiting from a method.
Logs the message with severity Severity.PATH if SAP logger is used
and with log severity Level.FINER if SUN logger is used.
sourceMethod - name of the method
public void exiting(String sourceMethod,
Object result)
This is a convenience method that can be used to log returning from a method.
Since every entering method should have matching exiting method it is recommended to use finally block for logging exiting from a method.
Logs the message with severity Severity.PATH if SAP logger is used
and with log severity Level.FINER if SUN logger is used.
sourceMethod - name of the methodresult - Object that is being returnedpublic void debug(String msg)
Logs the message with severity Severity.DEBUG if SAP logger is used
and with log severity Level.FINEST if SUN logger is used.
The logger should be enabled for the given severity in order to message to be forwarded to the logs/traces.
msg - The string message
public void debug(String msg,
Object[] params)
Logs the message with severity Severity.DEBUG if SAP logger is used
and with log severity Level.FINEST if SUN logger is used.
msg - The string messageparams - Array of parameters to the message
public void debug(String msg,
Throwable thrown)
Logs the message with severity Severity.DEBUG if SAP logger is used
and with log severity Level.FINEST if SUN logger is used.
msg - The string messagethrown - Throwable associated with log message.
public void debug(String sourceMethod,
String msg,
Object[] params,
Throwable thrown)
Logs the message with severity Severity.DEBUG if SAP logger is used
and with log severity Level.FINEST if SUN logger is used.
sourceMethod - Name of method that issued the logging requestmsg - The string messageparams - Array of parameters to the messagethrown - Throwable associated with log message.
public void debug(String sourceMethod,
String msg,
Throwable thrown)
Logs the message with severity Severity.DEBUG if SAP logger is used
and with log severity Level.FINEST if SUN logger is used.
sourceMethod - Name of method that issued the logging requestmsg - The string messagethrown - Throwable associated with log message.
public void debug(String sourceMethod,
String msg)
Logs the message with severity Severity.DEBUG if SAP logger is used
and with log severity Level.FINEST if SUN logger is used.
sourceMethod - Name of method that issued the logging requestmsg - The string messagepublic void path(String msg)
Logs the message with severity Severity.PATH if SAP logger is used
and with log severity Level.FINER if SUN logger is used.
The logger should be enabled for the given severity in order to message to be forwarded to the logs/traces.
msg - The string message
public void path(String msg,
Object[] params)
Logs the message with severity Severity.PATH if SAP logger is used
and with log severity Level.FINER if SUN logger is used.
msg - The string messageparams - Array of parameters to the message
public void path(String msg,
Throwable thrown)
Logs the message with severity Severity.PATH if SAP logger is used
and with log severity Level.FINER if SUN logger is used.
msg - The string messagethrown - Throwable associated with log message.
public void path(String sourceMethod,
String msg,
Object[] params,
Throwable thrown)
Logs the message with severity Severity.PATH if SAP logger is used
and with log severity Level.FINER if SUN logger is used.
sourceMethod - Name of method that issued the logging requestmsg - The string messageparams - Array of parameters to the messagethrown - Throwable associated with log message.
public void path(String sourceMethod,
String msg,
Throwable thrown)
Logs the message with severity Severity.PATH if SAP logger is used
and with log severity Level.FINER if SUN logger is used.
sourceMethod - Name of method that issued the logging requestmsg - The string messagethrown - Throwable associated with log message.
public void path(String sourceMethod,
String msg)
Logs the message with severity Severity.PATH if SAP logger is used
and with log severity Level.FINER if SUN logger is used.
sourceMethod - Name of method that issued the logging requestmsg - The string messagepublic void info(String msg)
Logs the message with severity Severity.INFO if SAP logger is used
and with log severity Level.INFO if SUN logger is used.
msg - The string message
public void info(String msg,
boolean traceOnly)
Logs the message with severity Severity.INFO if SAP logger is used
and with log severity Level.INFO if SUN logger is used.
msg - The string messagetraceOnly - Does not apply for standard java logger.
In case of SAP logger true value means the message should be logged into the
predefined trace but not into the log, false value means the message should be
logged into the trace and the log.
public void info(String msg,
Object[] params)
Logs the message with severity Severity.INFO if SAP logger is used
and with log severity Level.INFO if SUN logger is used.
msg - The string messageparams - array of parameters to the message
public void info(String msg,
Object[] params,
boolean traceOnly)
Logs the message with severity Severity.INFO if SAP logger is used
and with log severity Level.INFO if SUN logger is used.
msg - The string messageparams - array of parameters to the messagetraceOnly - Does not apply for standard java logger.
In case of SAP logger true value means the message should be logged into the
predefined trace but not into the log, false value means the message should be
logged into the trace and the log.
public void info(String msg,
Throwable thrown)
Logs the message with severity Severity.INFO if SAP logger is used
and with log severity Level.INFO if SUN logger is used.
msg - The string messagethrown - Throwable associated with log message.
public void info(String msg,
Throwable thrown,
boolean traceOnly)
Logs the message with severity Severity.INFO if SAP logger is used
and with log severity Level.INFO if SUN logger is used.
msg - The string messagethrown - Throwable associated with log message.traceOnly - Does not apply for standard java logger.
In case of SAP logger true value means the message should be logged into the
predefined trace but not into the log, false value means the message should be
logged into the trace and the log.
public void info(String sourceMethod,
String msg,
Object[] params,
Throwable thrown)
Logs the message with severity Severity.INFO if SAP logger is used
and with log severity Level.INFO if SUN logger is used.
sourceMethod - Name of method that issued the logging requestmsg - The string messageparams - Array of parameters to the messagethrown - Throwable associated with log message.
public void info(String sourceMethod,
String msg,
Throwable thrown)
Logs the message with severity Severity.INFO if SAP logger is used
and with log severity Level.INFO if SUN logger is used.
sourceMethod - Name of method that issued the logging requestmsg - The string messagethrown - Throwable associated with log message.
public void info(String sourceMethod,
String msg)
Logs the message with severity Severity.INFO if SAP logger is used
and with log severity Level.INFO if SUN logger is used.
sourceMethod - Name of method that issued the logging requestmsg - The string message
public void info(String sourceMethod,
String msg,
Object[] params,
Throwable thrown,
boolean traceOnly)
Logs the message with severity Severity.INFO if SAP logger is used
and with log severity Level.INFO if SUN logger is used.
sourceMethod - Name of method that issued the logging requestmsg - The string messageparams - Array of parameters to the messagethrown - Throwable associated with log message.traceOnly - Does not apply for standard java logger.
In case of SAP logger true value means the message should be logged into the
predefined trace but not into the log, false value means the message should be
logged into the trace and the log.
public void info(String sourceMethod,
String msg,
Throwable thrown,
boolean traceOnly)
Logs the message with severity Severity.INFO if SAP logger is used
and with log severity Level.INFO if SUN logger is used.
sourceMethod - Name of method that issued the logging requestmsg - The string messagethrown - Throwable associated with log message.traceOnly - Does not apply for standard java logger.
In case of SAP logger true value means the message should be logged into the
predefined trace but not into the log, false value means the message should be
logged into the trace and the log.
public void info(String sourceMethod,
String msg,
boolean traceOnly)
Logs the message with severity Severity.INFO if SAP logger is used
and with log severity Level.INFO if SUN logger is used.
sourceMethod - Name of method that issued the logging requestmsg - The string messagetraceOnly - Does not apply for standard java logger.
In case of SAP logger true value means the message should be logged into the
predefined trace but not into the log, false value means the message should be
logged into the trace and the log.public void warning(String msg)
Logs the message with severity Severity.WARNING if SAP logger is used
and with log severity Level.WARNING if SUN logger is used.
msg - The string message
public void warning(String msg,
boolean traceOnly)
Logs the message with severity Severity.WARNING if SAP logger is used
and with log severity Level.WARNING if SUN logger is used.
msg - The string messagetraceOnly - Does not apply for standard java logger.
In case of SAP logger true value means the message should be logged into the
predefined trace but not into the log, false value means the message should be
logged into the trace and the log.
public void warning(String msg,
Object[] params)
Logs the message with severity Severity.WARNING if SAP logger is used
and with log severity Level.WARNING if SUN logger is used.
msg - The string messageparams - Array of parameters to the message
public void warning(String msg,
Object[] params,
boolean traceOnly)
Logs the message with severity Severity.WARNING if SAP logger is used
and with log severity Level.WARNING if SUN logger is used.
msg - The string messageparams - Array of parameters to the messagetraceOnly - Does not apply for standard java logger.
In case of SAP logger true value means the message should be logged into the
predefined trace but not into the log, false value means the message should be
logged into the trace and the log.
public void warning(String msg,
Throwable thrown)
Logs the message with severity Severity.WARNING if SAP logger is used
and with log severity Level.WARNING if SUN logger is used.
msg - The string messagethrown - Throwable associated with log message.
public void warning(String msg,
Throwable thrown,
boolean traceOnly)
Logs the message with severity Severity.WARNING if SAP logger is used
and with log severity Level.WARNING if SUN logger is used.
msg - The string messagethrown - Throwable associated with log message.traceOnly - Does not apply for standard java logger.
In case of SAP logger true value means the message should be logged into the
predefined trace but not into the log, false value means the message should be
logged into the trace and the log.
public void warning(String sourceMethod,
String msg,
Object[] params,
Throwable thrown)
Logs the message with severity Severity.WARNING if SAP logger is used
and with log severity Level.WARNING if SUN logger is used.
sourceMethod - Name of method that issued the logging requestmsg - The string messageparams - Array of parameters to the messagethrown - Throwable associated with log message.
public void warning(String sourceMethod,
String msg,
Throwable thrown)
Logs the message with severity Severity.WARNING if SAP logger is used
and with log severity Level.WARNING if SUN logger is used.
sourceMethod - Name of method that issued the logging requestmsg - The string messagethrown - Throwable associated with log message.
public void warning(String sourceMethod,
String msg)
Logs the message with severity Severity.WARNING if SAP logger is used
and with log severity Level.WARNING if SUN logger is used.
sourceMethod - Name of method that issued the logging requestmsg - The string message
public void warning(String sourceMethod,
String msg,
Object[] params,
Throwable thrown,
boolean traceOnly)
Logs the message with severity Severity.WARNING if SAP logger is used
and with log severity Level.WARNING if SUN logger is used.
sourceMethod - Name of method that issued the logging requestmsg - The string messageparams - Array of parameters to the messagethrown - Throwable associated with log message.traceOnly - Does not apply for standard java logger.
In case of SAP logger true value means the message should be logged into the
predefined trace but not into the log, false value means the message should be
logged into the trace and the log.
public void warning(String sourceMethod,
String msg,
Throwable thrown,
boolean traceOnly)
Logs the message with severity Severity.WARNING if SAP logger is used
and with log severity Level.WARNING if SUN logger is used.
sourceMethod - Name of method that issued the logging requestmsg - The string messagethrown - Throwable associated with log message.traceOnly - Does not apply for standard java logger.
In case of SAP logger true value means the message should be logged into the
predefined trace but not into the log, false value means the message should be
logged into the trace and the log.
public void warning(String sourceMethod,
String msg,
boolean traceOnly)
Logs the message with severity Severity.WARNING if SAP logger is used
and with log severity Level.WARNING if SUN logger is used.
sourceMethod - Name of method that issued the logging requestmsg - The string messagetraceOnly - Does not apply for standard java logger.
In case of SAP logger true value means the message should be logged into the
predefined trace but not into the log, false value means the message should be
logged into the trace and the log.public void error(String msg)
Logs the message with severity Severity.ERROR if SAP logger is used
and with log severity Level.SEVERE if SUN logger is used.
msg - The string message
logged into the trace and the log.
public void error(String msg,
boolean traceOnly)
Logs the message with severity Severity.ERROR if SAP logger is used
and with log severity Level.SEVERE if SUN logger is used.
msg - The string message
logged into the trace and the log.traceOnly - Does not apply for standard java logger.
In case of SAP logger true value means the message should be logged into the
predefined trace but not into the log, false value means the message should be
logged into the trace and the log.
public void error(String msg,
Object[] params)
Logs the message with severity Severity.ERROR if SAP logger is used
and with log severity Level.SEVERE if SUN logger is used.
msg - The string messageparams - Array of parameters to the message
public void error(String msg,
Object[] params,
boolean traceOnly)
Logs the message with severity Severity.ERROR if SAP logger is used
and with log severity Level.SEVERE if SUN logger is used.
msg - The string messageparams - Array of parameters to the messagetraceOnly - Does not apply for standard java logger.
In case of SAP logger true value means the message should be logged into the
predefined trace but not into the log, false value means the message should be
logged into the trace and the log.
public void error(String msg,
Throwable thrown)
Logs the message with severity Severity.ERROR if SAP logger is used
and with log severity Level.SEVERE if SUN logger is used.
msg - The string messagethrown - Throwable associated with log message.
public void error(String msg,
Throwable thrown,
boolean traceOnly)
Logs the message with severity Severity.ERROR if SAP logger is used
and with log severity Level.SEVERE if SUN logger is used.
msg - The string messagethrown - Throwable associated with log message.traceOnly - Does not apply for standard java logger.
In case of SAP logger true value means the message should be logged into the
predefined trace but not into the log, false value means the message should be
logged into the trace and the log.
public void error(String sourceMethod,
String msg,
Object[] params,
Throwable thrown)
Logs the message with severity Severity.ERROR if SAP logger is used
and with log severity Level.SEVERE if SUN logger is used.
sourceMethod - Name of method that issued the logging requestmsg - The string messageparams - Array of parameters to the messagethrown - Throwable associated with log message.
public void error(String sourceMethod,
String msg,
Throwable thrown)
Logs the message with severity Severity.ERROR if SAP logger is used
and with log severity Level.SEVERE if SUN logger is used.
sourceMethod - Name of method that issued the logging requestmsg - The string messagethrown - Throwable associated with log message.
public void error(String sourceMethod,
String msg)
Logs the message with severity Severity.ERROR if SAP logger is used
and with log severity Level.SEVERE if SUN logger is used.
sourceMethod - Name of method that issued the logging requestmsg - The string message
public void error(String sourceMethod,
String msg,
Object[] params,
Throwable thrown,
boolean traceOnly)
Logs the message with severity Severity.ERROR if SAP logger is used
and with log severity Level.SEVERE if SUN logger is used.
sourceMethod - Name of method that issued the logging requestmsg - The string messageparams - Array of parameters to the messagethrown - Throwable associated with log message.traceOnly - Does not apply for standard java logger.
In case of SAP logger true value means the message should be logged into the
predefined trace but not into the log, false value means the message should be
logged into the trace and the log.
public void error(String sourceMethod,
String msg,
Throwable thrown,
boolean traceOnly)
Logs the message with severity Severity.ERROR if SAP logger is used
and with log severity Level.SEVERE if SUN logger is used.
sourceMethod - Name of method that issued the logging requestmsg - The string messagethrown - Throwable associated with log message.traceOnly - Does not apply for standard java logger.
In case of SAP logger true value means the message should be logged into the
predefined trace but not into the log, false value means the message should be
logged into the trace and the log.
public void error(String sourceMethod,
String msg,
boolean traceOnly)
Logs the message with severity Severity.ERROR if SAP logger is used
and with log severity Level.SEVERE if SUN logger is used.
sourceMethod - Name of method that issued the logging requestmsg - The string messagetraceOnly - Does not apply for standard java logger.
In case of SAP logger true value means the message should be logged into the
predefined trace but not into the log, false value means the message should be
logged into the trace and the log.public void fatal(String msg)
Logs the message with severity Severity.FATAL if SAP logger is used
and with log severity Level.SEVERE if SUN logger is used.
msg - The string message
logged into the trace and the log.
public void fatal(String msg,
boolean traceOnly)
Logs the message with severity Severity.FATAL if SAP logger is used
and with log severity Level.SEVERE if SUN logger is used.
msg - The string message
logged into the trace and the log.traceOnly - Does not apply for standard java logger.
In case of SAP logger true value means the message should be logged into the
predefined trace but not into the log, false value means the message should be
logged into the trace and the log.
public void fatal(String msg,
Object[] params)
Logs the message with severity Severity.FATAL if SAP logger is used
and with log severity Level.SEVERE if SUN logger is used.
msg - The string messageparams - Array of parameters to the message
public void fatal(String msg,
Object[] params,
boolean traceOnly)
Logs the message with severity Severity.FATAL if SAP logger is used
and with log severity Level.SEVERE if SUN logger is used.
msg - The string messageparams - Array of parameters to the messagetraceOnly - Does not apply for standard java logger.
In case of SAP logger true value means the message should be logged into the
predefined trace but not into the log, false value means the message should be
logged into the trace and the log.
public void fatal(String msg,
Throwable thrown)
Logs the message with severity Severity.FATAL if SAP logger is used
and with log severity Level.SEVERE if SUN logger is used.
msg - The string messagethrown - Throwable associated with log message.
public void fatal(String msg,
Throwable thrown,
boolean traceOnly)
Logs the message with severity Severity.FATAL if SAP logger is used
and with log severity Level.SEVERE if SUN logger is used.
msg - The string messagethrown - Throwable associated with log message.traceOnly - Does not apply for standard java logger.
In case of SAP logger true value means the message should be logged into the
predefined trace but not into the log, false value means the message should be
logged into the trace and the log.
public void fatal(String sourceMethod,
String msg,
Object[] params,
Throwable thrown)
Logs the message with severity Severity.FATAL if SAP logger is used
and with log severity Level.SEVERE if SUN logger is used.
sourceMethod - Name of method that issued the logging requestmsg - The string messageparams - Array of parameters to the messagethrown - Throwable associated with log message.
public void fatal(String sourceMethod,
String msg,
Throwable thrown)
Logs the message with severity Severity.FATAL if SAP logger is used
and with log severity Level.SEVERE if SUN logger is used.
sourceMethod - Name of method that issued the logging requestmsg - The string messagethrown - Throwable associated with log message.
public void fatal(String sourceMethod,
String msg)
Logs the message with severity Severity.FATAL if SAP logger is used
and with log severity Level.SEVERE if SUN logger is used.
sourceMethod - Name of method that issued the logging requestmsg - The string message
public void fatal(String sourceMethod,
String msg,
Object[] params,
Throwable thrown,
boolean traceOnly)
Logs the message with severity Severity.FATAL if SAP logger is used
and with log severity Level.SEVERE if SUN logger is used.
sourceMethod - Name of method that issued the logging requestmsg - The string messageparams - Array of parameters to the messagethrown - Throwable associated with log message.traceOnly - Does not apply for standard java logger.
In case of SAP logger true value means the message should be logged into the
predefined trace but not into the log, false value means the message should be
logged into the trace and the log.
public void fatal(String sourceMethod,
String msg,
Throwable thrown,
boolean traceOnly)
Logs the message with severity Severity.FATAL if SAP logger is used
and with log severity Level.SEVERE if SUN logger is used.
sourceMethod - Name of method that issued the logging requestmsg - The string messagethrown - Throwable associated with log message.traceOnly - Does not apply for standard java logger.
In case of SAP logger true value means the message should be logged into the
predefined trace but not into the log, false value means the message should be
logged into the trace and the log.
public void fatal(String sourceMethod,
String msg,
boolean traceOnly)
Logs the message with severity Severity.FATAL if SAP logger is used
and with log severity Level.SEVERE if SUN logger is used.
sourceMethod - Name of method that issued the logging requestmsg - The string messagetraceOnly - Does not apply for standard java logger.
In case of SAP logger true value means the message should be logged into the
predefined trace but not into the log, false value means the message should be
logged into the trace and the log.public int getType()
SUN_LOGGER_TYPE,
SAP_LOGGER_TYPEpublic boolean beDebug()
Level.FINEST if SUN logger or Severity.DEBUG
if SAP logger would actually be logged or traced by the logger.
This check is based on the Loggers effective level, which may be inherited from its parent.
public boolean bePath()
Level.FINER in SUN logger or Severity.PATH
in SAP logger would actually be logged or traced by the logger.
This check is based on the Loggers effective level, which may be inherited from its parent.
public boolean beInfo()
Level.INFO if SUN logger and Severity.INFO
if SAP logger would actually be logged or traced by the logger.
This check is based on the Loggers effective level, which may be inherited from its parent.
public boolean beWarning()
Level.WARNING if SUN logger and Severity.WARNINIG
if SAP logger would actually be logged or traced by the logger.
This check is based on the Loggers effective level, which may be inherited from its parent.
public boolean beError()
Level.SEVERE if SUN logger and Severity.ERROR
if SAP logger would actually be logged or traced by the logger.
This check is based on the Loggers effective level, which may be inherited from its parent.
public boolean beFatal()
Level.SEVERE if SUN logger and Severity.FATAL
if SAP logger would actually be logged or traced by the logger.
This check is based on the Loggers effective level, which may be inherited from its parent.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Copyright 2004-2007 by SAP AG. All Rights Reserved.
SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.
These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies (SAP Group) for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.