SAP ABAP Class CL_SWNC_LOG (Application Log with Persistence)
Hierarchy
☛
SAP_BASIS (Software Component) SAP Basis Component
⤷
BC-CCM-MON (Application Component) Monitoring
⤷
SWNC_COLL (Package) Collector and Aggregates
⤷
⤷
Properties
| Class | CL_SWNC_LOG | |
| Short Description | Application Log with Persistence | |
| Super Class | ||
| Instantiability of a Class | 2 | Public |
| Final |
General Data
| Message Class | ||
| Program status | ||
| Category | 0 | |
| Package | SWNC_COLL | Collector and Aggregates |
| Created | 20040629 | SAP |
| Last change | 20140121 | SAP |
| Shared Memory-enabled | ||
| Fixed point arithmetic | ||
| Unicode checks active |
Forward declarations
Class CL_SWNC_LOG has no forward declaration.
Interfaces
Class CL_SWNC_LOG has no interface implemented.
Friends
Class CL_SWNC_LOG has no friend class.
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Constant | Public | Type reference (TYPE) | BAL_S_MSG-PROBCLASS | '2' | Problem Class High | 20040629 | ||
| 2 | Constant | Public | Type reference (TYPE) | BAL_S_MSG-PROBCLASS | '4' | Problem Class Low | 20040629 | ||
| 3 | Constant | Public | Type reference (TYPE) | BAL_S_MSG-PROBCLASS | '3' | Problem Class Medium | 20040629 | ||
| 4 | Constant | Public | Type reference (TYPE) | BAL_S_MSG-PROBCLASS | SPACE | No Problem Class | 20040629 | ||
| 5 | Constant | Public | Type reference (TYPE) | BAL_S_MSG-PROBCLASS | '1' | Problem Class Very High | 20040629 | ||
| 6 | Static Attribute | Public | Type reference (TYPE) | BOOLEAN | '-' | Boolean Variable (X=true, -=false, space=unknown) | 20041019 | ||
| 7 | Constant | Private | Type reference (TYPE) | BALSUBOBJ | 'DEBUG' | Application Log: Subobject | 20050215 | ||
| 8 | Constant | Private | Type reference (TYPE) | BALSUBOBJ | 'DEFAULT' | Application Log: Subobject | 20040630 | ||
| 9 | Static Attribute | Public | Type reference (TYPE) | SWNC_CFLAG | 20121127 | ||||
| 10 | Static Attribute | Private | Type reference (TYPE) | BAL_S_LOG | 20040629 | ||||
| 11 | Static Attribute | Private | Type reference (TYPE) | BALLOGHNDL | Log Handle | 20040629 | |||
| 12 | Constant | Private | Type reference (TYPE) | BALOBJ_D | 'BCSWNC' | Log Name | 20040629 | ||
| 13 | Constant | Private | Type reference (TYPE) | I | 100 | Number of Messages Before Write to DB | 20040629 | ||
| 14 | Static Attribute | Private | Type reference (TYPE) | I | Number of Messages | 20040629 | |||
| 15 | Static Attribute | Private | Type reference (TYPE) | I | Total Number of Messages | 20040629 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Static method | Public | Method | Write Message to the Log | 20041019 | |
| 2 | Static method | Public | Method | Write exception to the log. | 20040713 | |
| 3 | Static method | Public | Method | Write system message to the log. | 20040629 | |
| 4 | Static method | Public | Method | Write long text to the log | 20121126 | |
| 5 | Static method | Public | Method | Write T100 message to the log | 20121126 | |
| 6 | Static method | Public | Method | Handle Application Log | 20040629 | |
| 7 | Static method | Public | Method | Initialization of the Log | 20040629 | |
| 8 | Static method | Public | Method | Delete All Logs from Memory | 20050509 | |
| 9 | Static method | Public | Method | Deletion of Old Logs from the Database | 20040629 | |
| 10 | Static method | Public | Method | Write Log to the Database | 20040629 |
Events
Class CL_SWNC_LOG has no event.
Types
Class CL_SWNC_LOG has no local type.
Method Signatures
Method ADD_DEBUG_MSG Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_HEADERTEXT | Call by reference | Type reference (TYPE) | C | Nachrichtenvariable | 20041019 | |||
| 2 | I_MSGV1 | Call by reference | Type reference (TYPE) | ANY | Nachrichtenvariable | 20041019 | |||
| 3 | I_MSGV2 | Call by reference | Type reference (TYPE) | ANY | Nachrichtenvariable | 20041019 | |||
| 4 | I_MSGV3 | Call by reference | Type reference (TYPE) | ANY | Nachrichtenvariable | 20041019 | |||
| 5 | I_MSGV4 | Call by reference | Type reference (TYPE) | ANY | Nachrichtenvariable | 20041019 |
Method ADD_DEBUG_MSG on class CL_SWNC_LOG has no exception.
Method ADD_EXCEPTION Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_EXCEPTION | Call by reference | Object reference (TYPE REF TO) | CX_ROOT | Abstrakte Oberklasse aller globalen Exceptions | 20040713 |
Method ADD_EXCEPTION on class CL_SWNC_LOG has no exception.
Method ADD_MSG Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_PROBCLASS | Value transfer | Type reference (TYPE) | BAL_S_MSG-PROBCLASS | Problemklasse | 20040629 |
Method ADD_MSG on class CL_SWNC_LOG has no exception.
Method ADD_STRING Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_MSGTY | Call by reference | Type reference (TYPE) | SYMSGTY | Nachrichtentyp | 20121126 | |||
| 2 | I_STRING | Call by reference | Type reference (TYPE) | CSEQUENCE | 20121126 |
Method ADD_STRING on class CL_SWNC_LOG has no exception.
Method ADD_T100_MESSAGE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_MSGID | Call by reference | Type reference (TYPE) | SYMSGID | Nachrichtenklasse | 20121126 | |||
| 2 | I_MSGNO | Call by reference | Type reference (TYPE) | SYMSGNO | Nachrichtennummer | 20121126 | |||
| 3 | I_MSGTY | Call by reference | Type reference (TYPE) | SYMSGTY | Nachrichtentyp | 20121126 | |||
| 4 | I_MSGV1 | Call by reference | Type reference (TYPE) | CSEQUENCE | Nachrichtenvariable | 20121126 | |||
| 5 | I_MSGV2 | Call by reference | Type reference (TYPE) | CSEQUENCE | Nachrichtenvariable | 20121126 | |||
| 6 | I_MSGV3 | Call by reference | Type reference (TYPE) | CSEQUENCE | Nachrichtenvariable | 20121126 | |||
| 7 | I_MSGV4 | Call by reference | Type reference (TYPE) | CSEQUENCE | Nachrichtenvariable | 20121126 | |||
| 8 | I_PROBCLASS | Call by reference | Type reference (TYPE) | BAL_S_MSG-PROBCLASS | C_PROBCLASS_MEDIUM | Anwendungs-Log: Problemklasse einer Meldung | 20121126 |
Method ADD_T100_MESSAGE on class CL_SWNC_LOG has no exception.
Method GET_HANDLE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | E_HANDLE | Value transfer | Type reference (TYPE) | BALLOGHNDL | Handle auf das Applikations-Log | 20040629 |
Method GET_HANDLE on class CL_SWNC_LOG has no exception.
Method INITIALIZE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_EXTNUMBER | Value transfer | Type reference (TYPE) | BALNREXT | Externe Identifikation | 20040629 | |||
| 2 | I_SUBOBJECT | Value transfer | Type reference (TYPE) | BALSUBOBJ | Anwendungs-Log: Unterobjekt | 20040630 |
Method INITIALIZE on class CL_SWNC_LOG has no exception.
Method REFRESH Signature
Method REFRESH on class CL_SWNC_LOG has no parameter.
Method REFRESH on class CL_SWNC_LOG has no exception.
Method REORGANIZATION Signature
Method REORGANIZATION on class CL_SWNC_LOG has no parameter.
Method REORGANIZATION on class CL_SWNC_LOG has no exception.
Method SAVE_TO_DB Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IF_SAVE_IN_2ND_CONN | Call by reference | Type reference (TYPE) | SWNC_CFLAG | Über sekundäre Verbindung speichern | 20120727 |
Method SAVE_TO_DB on class CL_SWNC_LOG has no exception.
History
| Last changed by/on | SAP | 20140121 |
| SAP Release Created in | 700 |