SAP ABAP Class CL_TRACE_LOGGER (Logs trace messages)
Hierarchy
☛
SAP_BASIS (Software Component) SAP Basis Component
⤷
BC-SEC-LGN-SML (Application Component) SAML 2.0
⤷
SEC_TRACE (Package) Generic functionality for security tracing

⤷

⤷

Properties
Class | CL_TRACE_LOGGER | |
Short Description | Logs trace messages | |
Super Class | ||
Instantiability of a Class | 2 | Public |
Final |
General Data
Message Class | ||
Program status | ||
Category | 0 | |
Package | SEC_TRACE | Generic functionality for security tracing |
Created | 20100723 | SAP |
Last change | 20130531 | SAP |
Shared Memory-enabled | ||
Fixed point arithmetic | ||
Unicode checks active |
Forward declarations
# | Type group / Object type | Type | Type Description |
---|---|---|---|
1 | ![]() |
Type group use (TYPE-POOLS tp) | Type group use (TYPE-POOLS tp) |
2 | ![]() |
Forward declaration interface (INTERFACE i DEFINITION DEF... | Forward declaration interface (INTERFACE i DEFINITION DEF... |
Interfaces
Class CL_TRACE_LOGGER has no interface implemented.
Friends
Class CL_TRACE_LOGGER has no friend class.
Attributes
# | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
Static Attribute | Private | Type reference (TYPE) | I | 5 | Max number of of elemnts in a where clause | 20110124 | |
2 | ![]() |
Instance attribute | Private | Type reference (TYPE) | SYMANDT | 20100723 |
Methods
# | Method | Level | Visibility | Method type | Description | Created on |
---|---|---|---|---|---|---|
1 | ![]() |
Instance method | Public | Constructor | Public constructor | 20100723 |
2 | ![]() |
Instance method | Private | Method | Converts abap timestam to java format in miliseconds | 20100920 |
3 | ![]() |
Instance method | Public | Method | Creates a new trace session with status 'Running' | 20100723 |
4 | ![]() |
Instance method | Private | Method | Deletes a chunk of trace sessions | 20110124 |
5 | ![]() |
Instance method | Public | Method | Deletes multiple trace sessions | 20110124 |
6 | ![]() |
Instance method | Public | Method | Deletes a specific traces session or all sessions | 20100723 |
7 | ![]() |
Static method | Public | Method | Creates a string representation of a callstack | 20110601 |
8 | ![]() |
Instance method | Private | Method | Splits long strings into line with up to 120 characters | 20101130 |
9 | ![]() |
Instance method | Private | Method | Returns the count of the messages per session | 20100723 |
10 | ![]() |
Instance method | Private | Method | Creates a new session ID | 20100723 |
11 | ![]() |
Instance method | Private | Method | Returns the name of the application server | 20101020 |
12 | ![]() |
Instance method | Private | Method | Sets a lock on the 'E_TRACE_SESSION' lock object | 20100723 |
13 | ![]() |
Instance method | Public | Method | Logs an HTTP reques | 20101209 |
14 | ![]() |
Instance method | Public | Method | Logs a message in a trace session | 20100723 |
15 | ![]() |
Instance method | Public | Method | Changes the severity of a trace session | 20100723 |
16 | ![]() |
Instance method | Public | Method | Changes the status of a trace session | 20100723 |
17 | ![]() |
Instance method | Private | Method | Removes the lock on the 'E_TRACE_SESSION' lock object | 20100723 |
Events
Class CL_TRACE_LOGGER has no event.
Types
Class CL_TRACE_LOGGER has no local type.
Method Signatures
Method CONSTRUCTOR Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
IF_CLIENT | Call by reference | Type reference (TYPE) | SYMANDT | Client ID of Current User | 20100723 |
Method CONSTRUCTOR on class CL_TRACE_LOGGER has no exception.
Method CONVERT_ABAP_TIMESTAMP_TO_JAVA Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
EX_TIMESTAMP | Call by reference | Type reference (TYPE) | STRING | Time in Milliseconds since January 1, 1970, 00:00:00 GMT | 20100920 | ||
2 | ![]() |
IM_DATE | Call by reference | Type reference (TYPE) | SYDATE | Date Data Element for SYST | 20100920 | ||
3 | ![]() |
IM_MSEC | Call by reference | Type reference (TYPE) | NUM03 | 000 | Remaining Milliseconds | 20100920 | |
4 | ![]() |
IM_TIME | Call by reference | Type reference (TYPE) | SYUZEIT | Date and Time, Current Application Server Time | 20100920 |
Method CONVERT_ABAP_TIMESTAMP_TO_JAVA on class CL_TRACE_LOGGER has no exception.
Method CREATE_TRACE_SESSION Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
IV_CATEGORY | Call by reference | Type reference (TYPE) | TRACE_CATEGORY | Category of a security trace | 20100723 | ||
2 | ![]() |
IV_MSG_CNT | Call by reference | Type reference (TYPE) | INT4 | 10000 | Maximum number of messages for this session | 20100723 | |
3 | ![]() |
IV_SESSION_NAME | Call by reference | Type reference (TYPE) | CHAR30 | Name of the session | 20100723 | ||
4 | ![]() |
IV_SEVERITY | Call by reference | Type reference (TYPE) | TRACE_SEVERITY | Trace session severity | 20100723 | ||
5 | ![]() |
RV_SESSION_ID | Value transfer | Type reference (TYPE) | SEC_INTEGER64 | The ID of the created session | 20100723 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
20100723 |
Method DELETE_CHUNK Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
IT_SESSIONS | Call by reference | Type reference (TYPE) | TRACE_SESSION_ID_T | Table of session IDs | 20110124 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
Security diagnostic tool exception | 20110124 |
Method DELETE_MULTIPLE_SESSIONS Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
IT_SESSIONS | Call by reference | Type reference (TYPE) | TRACE_SESSION_ID_T | Table of session IDs | 20110124 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
Security diagnostic tool exception | 20110124 |
Method DELETE_TRACE_SESSIONS Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
IV_CATEGORY | Call by reference | Type reference (TYPE) | TRACE_CATEGORY | Category of the sessions to be deleted | 20100723 | ||
2 | ![]() |
IV_SESSION_ID | Call by reference | Type reference (TYPE) | SEC_INTEGER64 | The ID of the session to delete | 20100723 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
20100723 |
Method FORMAT_CALLSTACK Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
IV_CALLSTACK | Call by reference | Type reference (TYPE) | ABAP_CALLSTACK | ABAP Call Stack | 20110601 | ||
2 | ![]() |
IV_IS_EXCEPTION | Call by reference | Type reference (TYPE) | ABAP_BOOL | True if this is a callstack of an exception | 20110601 | ||
3 | ![]() |
IV_PREFIX | Call by reference | Type reference (TYPE) | STRING | Prefix to insert at every line | 20110601 | ||
4 | ![]() |
RV_CALLSTACK | Value transfer | Type reference (TYPE) | STRING | Formatted callstack | 20110601 |
Method FORMAT_CALLSTACK on class CL_TRACE_LOGGER has no exception.
Method FORMAT_MESSAGE_STRING Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
IV_MESSAGE | Call by reference | Type reference (TYPE) | STRING | 20101130 | |||
2 | ![]() |
RV_VALUE | Value transfer | Type reference (TYPE) | STRING | 20101130 |
Method FORMAT_MESSAGE_STRING on class CL_TRACE_LOGGER has no exception.
Method GET_MSGS_COUNT Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
IV_SESSION_ID | Call by reference | Type reference (TYPE) | SEC_INTEGER64 | ID of the session | 20100723 | ||
2 | ![]() |
RV_COUNT | Value transfer | Type reference (TYPE) | I | Number of the messages in the specified session | 20100723 |
Method GET_MSGS_COUNT on class CL_TRACE_LOGGER has no exception.
Method GET_NEW_SESSION_ID Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
RV_SESSION_ID | Value transfer | Type reference (TYPE) | SEC_INTEGER64 | Returns a new session ID | 20100723 |
Method GET_NEW_SESSION_ID on class CL_TRACE_LOGGER has no exception.
Method GET_SERVER_NAME Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
RV_SERVER_NAME | Value transfer | Type reference (TYPE) | MSHOST2 | Name of Application Server | 20101020 |
Method GET_SERVER_NAME on class CL_TRACE_LOGGER has no exception.
Method LOCK Signature
Method LOCK on class CL_TRACE_LOGGER has no parameter.
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
20100723 |
Method LOG_HTTP_REQUEST Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
IO_SERVER | Call by reference | Object reference (TYPE REF TO) | IF_HTTP_SERVER | HTTP Server | 20101209 | ||
2 | ![]() |
IV_CALLSTACK | Call by reference | Type reference (TYPE) | ABAP_CALLSTACK | Callstack from which the message is logged | 20101209 | ||
3 | ![]() |
IV_SESSION_ID | Call by reference | Type reference (TYPE) | SEC_INTEGER64 | ID of the session where the message will be logged | 20101209 | ||
4 | ![]() |
IV_SEVERITY | Call by reference | Type reference (TYPE) | TRACE_SEVERITY | Severity of the message | 20101209 | ||
5 | ![]() |
RV_INSERTED_MSGS | Value transfer | Type reference (TYPE) | I | Number of inserted messages | 20101209 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
Security diagnostic tool exception | 20101209 |
Method LOG_TRACE_ENTRY Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
IV_CALLSTACK | Call by reference | Type reference (TYPE) | ABAP_CALLSTACK | Callstack from which the message is logged | 20100723 | ||
2 | ![]() |
IV_MESSAGE | Call by reference | Type reference (TYPE) | STRING | Message to be logged | 20100723 | ||
3 | ![]() |
IV_SESSION_ID | Call by reference | Type reference (TYPE) | SEC_INTEGER64 | ID of the session where the message will be logged | 20100723 | ||
4 | ![]() |
IV_SEVERITY | Call by reference | Type reference (TYPE) | TRACE_SEVERITY | Severity of the message | 20100723 | ||
5 | ![]() |
RV_INSERTED_MSGS | Value transfer | Type reference (TYPE) | I | Number of inserted messages | 20100730 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
20100723 |
Method SET_TRACE_SESSION_SEVERITY Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
IV_SESSION_ID | Call by reference | Type reference (TYPE) | SEC_INTEGER64 | ID of the session to be changed | 20100723 | ||
2 | ![]() |
IV_SESSION_SEVERITY | Call by reference | Type reference (TYPE) | TRACE_SEVERITY | The new severity | 20100723 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
20100723 |
Method SET_TRACE_SESSION_STATUS Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
IV_SESSION_ID | Call by reference | Type reference (TYPE) | SEC_INTEGER64 | ID of the session to be changed | 20100723 | ||
2 | ![]() |
IV_STATUS | Call by reference | Type reference (TYPE) | TRACE_SESSION_STATUS | The new status of the trace session | 20100723 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
20100723 |
Method UNLOCK Signature
Method UNLOCK on class CL_TRACE_LOGGER has no parameter.
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
20100723 |
History
Last changed by/on | SAP | 20130531 |
SAP Release Created in | 703 |