SAP ABAP Class CL_DB2_LOGGER (DB2 logging facility)
Hierarchy
☛
SAP_BASIS (Software Component) SAP Basis Component
⤷
BC-DB-DB2 (Application Component) DB2 for z/OS
⤷
STU2 (Package) CCMS for DB2 for OS/390
⤷
⤷
Properties
| Class | CL_DB2_LOGGER | |
| Short Description | DB2 logging facility | |
| Super Class | ||
| Instantiability of a Class | 2 | Public |
| Final |
General Data
| Message Class | ||
| Program status | ||
| Category | 0 | |
| Package | STU2 | CCMS for DB2 for OS/390 |
| Created | 20060710 | SAP |
| Last change | 20090618 | 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) |
Interfaces
Class CL_DB2_LOGGER has no interface implemented.
Friends
Class CL_DB2_LOGGER has no friend class.
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Static Attribute | Private | Object reference (TYPE REF TO) | CL_DB6_TREE_NAVIGATOR | Reference to DBACockpit | 20070419 | |||
| 2 | Instance attribute | Private | Type reference (TYPE) | I | 1 if logging is enabled, 0 otherwise | 20060710 | |||
| 3 | Instance attribute | Private | Type reference (TYPE) | STRING | NAME OF FILE MESSAGES ARE LOGGED INTO | 20060710 | |||
| 4 | Constant | Public | Type reference (TYPE) | I | -1 | 20070419 | |||
| 5 | Constant | Public | Type reference (TYPE) | I | 1 | 20070419 | |||
| 6 | Constant | Public | Type reference (TYPE) | I | 0 | 20070419 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Instance method | Public | Method | Class "destructor" | 20060710 | |
| 2 | Instance method | Private | Method | Close logfile | 20070314 | |
| 3 | Instance method | Public | Constructor | Class constructor | 20060710 | |
| 4 | Instance method | Public | Method | Disable logging | 20060710 | |
| 5 | Instance method | Public | Method | Enable logging | 20060710 | |
| 6 | Instance method | Public | Method | 20060710 | ||
| 7 | Static method | Public | Method | Logs the message to different media | 20070614 | |
| 8 | Instance method | Public | Method | Log a message to the logfile | 20060710 | |
| 9 | Instance method | Private | Method | Open logfile | 20070314 |
Events
Class CL_DB2_LOGGER has no event.
Types
Class CL_DB2_LOGGER has no local type.
Method Signatures
Method CLEANUP Signature
Method CLEANUP on class CL_DB2_LOGGER has no parameter.
Method CLEANUP on class CL_DB2_LOGGER has no exception.
Method CLOSE_FILE Signature
Method CLOSE_FILE on class CL_DB2_LOGGER has no parameter.
Method CLOSE_FILE on class CL_DB2_LOGGER has no exception.
Method CONSTRUCTOR Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | INIT_ENABLED | Call by reference | Type reference (TYPE) | I | 0 | Start with logging enabled (1) or not (0) | 20060710 | ||
| 2 | INIT_LOGFILE | Call by reference | Type reference (TYPE) | STRING | '/tmp/db2_logfile' | Name of the file messages are logged into. | 20060710 |
Method CONSTRUCTOR on class CL_DB2_LOGGER has no exception.
Method DISABLE_FILE_LOGGING Signature
Method DISABLE_FILE_LOGGING on class CL_DB2_LOGGER has no parameter.
Method DISABLE_FILE_LOGGING on class CL_DB2_LOGGER has no exception.
Method ENABLE_FILE_LOGGING Signature
Method ENABLE_FILE_LOGGING on class CL_DB2_LOGGER has no parameter.
Method ENABLE_FILE_LOGGING on class CL_DB2_LOGGER has no exception.
Method HANDLE_SQL_EXCEPTION Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | L_CON_REF | Call by reference | Object reference (TYPE REF TO) | CL_SQL_CONNECTION | Database Connection | 20060710 | |||
| 2 | L_SQLERR_REF | Call by reference | Object reference (TYPE REF TO) | CX_SQL_EXCEPTION | Exception Class for SQL Error | 20060710 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 20060710 |
Method LOG_MSG Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | LONG_MESSAGE | Call by reference | Type reference (TYPE) | STRING | 20070614 | ||||
| 2 | MESSAGE | Call by reference | Type reference (TYPE) | STRING | 20070614 | ||||
| 3 | MSG_TYPE | Call by reference | Type reference (TYPE) | I | 20070614 | ||||
| 4 | SYSTEMLOG | Call by reference | Type reference (TYPE) | ABAP_BOOL | SPACE | 20081216 |
Method LOG_MSG on class CL_DB2_LOGGER has no exception.
Method LOG_MSG_TO_FILE Signature
Method LOG_MSG_TO_FILE on class CL_DB2_LOGGER has no exception.
Method OPEN_FILE Signature
Method OPEN_FILE on class CL_DB2_LOGGER has no parameter.
Method OPEN_FILE on class CL_DB2_LOGGER has no exception.
History
| Last changed by/on | SAP | 20090618 |
| SAP Release Created in | 710 |