Location & Category Categorypublic class PPLogger extends Object
| Constructor and Description |
|---|
PPLogger(com.sap.tc.logging.Category category,
com.sap.tc.logging.Location location)
Deprecated.
Constructs a PPLogger instance.
|
PPLogger(String subCategoryName,
String locationName)
Deprecated.
Constructs a PPLogger instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
beLogged(LoggingConsts severity)
Deprecated.
Indicates whether the logger is configured to write log entries for a specific severity.
|
boolean |
beTraced(TracingConsts severity)
Deprecated.
Indicates whether the logger is configured to write trace entries for a specific severity.
|
protected void |
internalLog(int severity,
String messageFormat,
String[] paramsArray)
Deprecated.
Writes a log message with a specific severity and parameters.
|
protected void |
internalTrace(int severity,
String subLoc,
String messageFormat,
String[] paramsArray)
Deprecated.
Writes a trace message with a specific severity and sub-location.
|
void |
log(LoggingConsts severity,
String message)
Deprecated.
Writes a log message with a specific severity.
|
void |
log(LoggingConsts severity,
String messageFormat,
String param1)
Deprecated.
Writes a log message with a specific severity.
|
void |
log(LoggingConsts severity,
String messageFormat,
String param1,
String param2)
Deprecated.
Writes a log message with a specific severity.
|
void |
log(LoggingConsts severity,
String messageFormat,
String param1,
String param2,
String param3)
Deprecated.
Writes a log message with a specific severity.
|
void |
log(LoggingConsts severity,
String messageFormat,
String param1,
String param2,
String param3,
String param4)
Deprecated.
Writes a log message with a specific severity.
|
void |
trace(TracingConsts severity,
String subLoc,
String message)
Deprecated.
Writes a trace message with a specific severity and sub-location.
|
void |
trace(TracingConsts severity,
String subLoc,
String messageFormat,
String param1)
Deprecated.
Writes a trace message with a specific severity and sub-location.
|
void |
trace(TracingConsts severity,
String subLoc,
String messageFormat,
String param1,
String param2)
Deprecated.
Writes a trace message with a specific severity and sub-location.
|
void |
trace(TracingConsts severity,
String subLoc,
String messageFormat,
String param1,
String param2,
String param3)
Deprecated.
Writes a trace message with a specific severity and sub-location.
|
void |
trace(TracingConsts severity,
String subLoc,
String messageFormat,
String param1,
String param2,
String param3,
String param4)
Deprecated.
Writes a trace message with a specific severity and sub-location.
|
void |
traceThrowableT(TracingConsts severity,
String subLoc,
Throwable e)
Deprecated.
Writes a trace entry with a specific severity and sub-location.
|
void |
traceThrowableT(TracingConsts severity,
String subLoc,
Throwable e,
String message)
Deprecated.
Writes a trace message with a specific severity and sub-location.
|
public PPLogger(com.sap.tc.logging.Category category,
com.sap.tc.logging.Location location)
category - a category of the logging entrieslocation - a location of the tracing entriespublic void log(LoggingConsts severity, String message)
severity - the severity level of the log entrymessage - the message to be writtenpublic void log(LoggingConsts severity, String messageFormat, String param1)
severity - the severity level of the log entrymessageFormat - the message to be written with a placeholder for one parameterparam1 - the messageFormat parameterpublic void log(LoggingConsts severity, String messageFormat, String param1, String param2)
severity - the severity level of the log entrymessageFormat - the message to be written with placeholders for two parametersparam1 - the first messageFormat parameterparam2 - the second messageFormat parameterpublic void log(LoggingConsts severity, String messageFormat, String param1, String param2, String param3)
severity - the severity level of the log entrymessageFormat - the message to be written with placeholders for three parametersparam1 - the first messageFormat parameterparam2 - the second messageFormat parameterparam3 - the third messageFormat parameterpublic void log(LoggingConsts severity, String messageFormat, String param1, String param2, String param3, String param4)
severity - the severity level of the log entrymessageFormat - the message to be written with placeholders for four parametersparam1 - the first messageFormat parameterparam2 - the second messageFormat parameterparam3 - the third messageFormat parameterparam4 - the fourth messageFormat parameterpublic void trace(TracingConsts severity, String subLoc, String message)
severity - the severity level of the trace entrysubLoc - the sub-location of the trace, for example, "this.getClass().getName()"message - the message to be writtenpublic void trace(TracingConsts severity, String subLoc, String messageFormat, String param1)
severity - the severity level of the trace entrysubLoc - the sub-location of the trace, for example, "this.getClass().getName()"messageFormat - the message to be written with a placeholder for one parameterparam1 - the messageFormat parameterpublic void trace(TracingConsts severity, String subLoc, String messageFormat, String param1, String param2)
severity - the severity level of the trace entrysubLoc - the sub-location of the trace, for example, "this.getClass().getName()"messageFormat - the message to be written with placeholders for two parametersparam1 - the first messageFormat parameterparam2 - the second messageFormat parameterpublic void trace(TracingConsts severity, String subLoc, String messageFormat, String param1, String param2, String param3)
severity - the severity level of the trace entrysubLoc - the sub-location of the trace, for example, "this.getClass().getName()"messageFormat - the message to be written with placeholders for three parametersparam1 - the first messageFormat parameterparam2 - the second messageFormat parameterparam3 - the third messageFormat parameterpublic void trace(TracingConsts severity, String subLoc, String messageFormat, String param1, String param2, String param3, String param4)
severity - the severity level of the trace entrysubLoc - the sub-location of the trace, for example, "this.getClass().getName()"messageFormat - the message to be written with placeholders for four parametersparam1 - the first messageFormat parameterparam2 - the second messageFormat parameterparam3 - the third messageFormat parameterparam4 - the forth messageFormat parameterpublic void traceThrowableT(TracingConsts severity, String subLoc, Throwable e)
severity - the severity level of the trace entrysubLoc - the sub-location of the trace, for example, "this.getClass().getName()"e - the exception catched by the codepublic void traceThrowableT(TracingConsts severity, String subLoc, Throwable e, String message)
severity - the severity level of the trace entrysubLoc - the sub-location of the trace, for example, "this.getClass().getName()"e - the exception catched by the codemessage - the message to be writtenpublic boolean beLogged(LoggingConsts severity)
severity - indicates which severity to checkpublic boolean beTraced(TracingConsts severity)
severity - indicates which severity to checkprotected void internalLog(int severity,
String messageFormat,
String[] paramsArray)
severity - the severity level of the log entrymessageFormat - the message to be written with placeholders for parametersparamsArray - an array of all the message parametersprotected void internalTrace(int severity,
String subLoc,
String messageFormat,
String[] paramsArray)
severity - the severity level of the trace entrysubLoc - the sub-location of the trace, for example "this.getClass().getName()"messageFormat - the message to be written with placeholders for parametersparamsArray - an array of all the message parameters| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] EP-RUNTIME
|
[sap.com] tc/ep/common/api
|
api
|
EP-PIN
|
Copyright 2021 SAP SE Complete Copyright Notice