|
SAP NetWeaver 7.30 Enterprise Portal (SP07) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sapportals.common.PPLogger
public class PPLogger
The class that provides methods for writing log and trace entries (messages).
Log messages are meant for system administrators to monitor the portal behavior.
Trace messages are meant for developers and support engineers, who need
to be able to understand the program flow and analyze the context.
Each message includes information about the importance (or severity) of the event and the application or category from which the message is written.
| Constructor Summary | |
|---|---|
PPLogger(com.sap.tc.logging.Category category,
com.sap.tc.logging.Location location)
Constructs a PPLogger instance. |
|
PPLogger(String subCategoryName,
String locationName)
Constructs a PPLogger instance. |
|
| Method Summary | |
|---|---|
boolean |
beLogged(LoggingConsts severity)
Indicates whether the logger is configured to write log entries for a specific severity. |
boolean |
beTraced(TracingConsts severity)
Indicates whether the logger is configured to write trace entries for a specific severity. |
protected void |
internalLog(int severity,
String messageFormat,
String[] paramsArray)
Writes a log message with a specific severity and parameters. |
protected void |
internalTrace(int severity,
String subLoc,
String messageFormat,
String[] paramsArray)
Writes a trace message with a specific severity and sub-location. |
void |
log(LoggingConsts severity,
String message)
Writes a log message with a specific severity. |
void |
log(LoggingConsts severity,
String messageFormat,
String param1)
Writes a log message with a specific severity. |
void |
log(LoggingConsts severity,
String messageFormat,
String param1,
String param2)
Writes a log message with a specific severity. |
void |
log(LoggingConsts severity,
String messageFormat,
String param1,
String param2,
String param3)
Writes a log message with a specific severity. |
void |
log(LoggingConsts severity,
String messageFormat,
String param1,
String param2,
String param3,
String param4)
Writes a log message with a specific severity. |
void |
trace(TracingConsts severity,
String subLoc,
String message)
Writes a trace message with a specific severity and sub-location. |
void |
trace(TracingConsts severity,
String subLoc,
String messageFormat,
String param1)
Writes a trace message with a specific severity and sub-location. |
void |
trace(TracingConsts severity,
String subLoc,
String messageFormat,
String param1,
String param2)
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)
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)
Writes a trace message with a specific severity and sub-location. |
void |
traceThrowableT(TracingConsts severity,
String subLoc,
Throwable e)
Writes a trace entry with a specific severity and sub-location. |
void |
traceThrowableT(TracingConsts severity,
String subLoc,
Throwable e,
String message)
Writes a trace message with a specific severity and sub-location. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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 entries
public PPLogger(String subCategoryName,
String locationName)
subCategoryName - the name of the category related to logging entrieslocationName - the name of the location of the tracing entries| Method Detail |
|---|
public void log(LoggingConsts severity,
String message)
severity - the severity level of the log entrymessage - the message to be written
public 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 parameter
public 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 parameter
public 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 parameter
public 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 parameter
public 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 written
public 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 parameter
public 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 parameter
public 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 parameter
public 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 parameter
public 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 code
public 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 - Returns true if the logger is configured to write log entries for the specified severitypublic boolean beTraced(TracingConsts severity)
severity - Returns true if the logger is configured to write trace entries for the specified severity
protected 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 parameters
protected 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
|
|
SAP NetWeaver 7.30 Enterprise Portal (SP07) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||