SAP ABAP Class CL_SWF_LOG_FACTORY (Log Factory)
Hierarchy
☛
SAP_BASIS (Software Component) SAP Basis Component
⤷
BC-BMT-WFM (Application Component) SAP Business Workflow
⤷
SWF_LOG (Package) Workflow: Log Manager
⤷
⤷
Properties
| Class | CL_SWF_LOG_FACTORY | |
| Short Description | Log Factory | |
| Super Class | ||
| Instantiability of a Class | 2 | Public |
| Final |
General Data
| Message Class | ||
| Program status | ||
| Category | 0 | |
| Package | SWF_LOG | Workflow: Log Manager |
| Created | 20000426 | SAP |
| Last change | 20110908 | SAP |
| Shared Memory-enabled | ||
| Fixed point arithmetic | ||
| Unicode checks active |
Forward declarations
Class CL_SWF_LOG_FACTORY has no forward declaration.
Interfaces
Class CL_SWF_LOG_FACTORY has no interface implemented.
Friends
Class CL_SWF_LOG_FACTORY has no friend class.
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Constant | Public | Type reference (TYPE) | SWF_LOGLEV | 8 | Log Level: Cancel Error | 20000523 | ||
| 2 | Constant | Public | Type reference (TYPE) | SWF_LOGLEV | 7 | Log Level: Error | 20000523 | ||
| 3 | Constant | Public | Type reference (TYPE) | SWF_LOGLEV | 3 | Log Level: Information | 20000523 | ||
| 4 | Constant | Public | Type reference (TYPE) | SWF_LOGLEV | 9 | Log Level: Maximum | 20000526 | ||
| 5 | Constant | Public | Type reference (TYPE) | SWF_LOGLEV | 0 | Log Level: Minimum | 20000526 | ||
| 6 | Constant | Public | Type reference (TYPE) | SWF_LOGLEV | 2 | Log Level: Success | 20000523 | ||
| 7 | Constant | Public | Type reference (TYPE) | SWF_LOGLEV | 6 | Log Level: Temporary Error | 20000523 | ||
| 8 | Constant | Public | Type reference (TYPE) | SWF_LOGLEV | 4 | Log Level: Warning | 20000523 | ||
| 9 | Constant | Public | Type reference (TYPE) | SWFDLOGPRO-PROFILE | SPACE | Name of Log Profile | 20000503 | ||
| 10 | Static Attribute | Protected | See coding | Invalid Log Profile | 20000428 | ||||
| 11 | Static Attribute | Protected | See coding | Instance Management of Generated Log Entries | 20000503 | ||||
| 12 | Static Attribute | Protected | See coding | Table of Persistence References | 20000530 | ||||
| 13 | Static Attribute | Protected | See coding | Valid Log Profile | 20000428 | ||||
| 14 | Static Attribute | Protected | Object reference (TYPE REF TO) | OBJECT | External Context | 20000524 | |||
| 15 | Static Attribute | Protected | Object reference (TYPE REF TO) | IF_SWF_LOG_MANAGER | Log Manager | 20000530 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Static method | Public | Method | Generates and Gets a New Log Profile | 20000510 | |
| 2 | Static method | Public | Method | Gets External Context | 20000524 | |
| 3 | Static method | Public | Method | Gets Standard Log Profile for Log Type | 20000705 | |
| 4 | Static method | Public | Method | Gets Log Entries After Exception | 20000426 | |
| 5 | Static method | Public | Method | Gets Log Entry | 20000426 | |
| 6 | Static method | Public | Method | Gets Log Manager (SINGLETON) | 20000530 | |
| 7 | Static method | Public | Method | Gets Log Profile | 20000502 | |
| 8 | Static method | Private | Method | Gets a Reference to Persistence Class | 20000531 | |
| 9 | Static method | Public | Method | Checks Whether Log Entry Required | 20000523 | |
| 10 | Static method | Public | Method | Sets External Context | 20000524 |
Events
Class CL_SWF_LOG_FACTORY has no event.
Types
| # | Type | Visibility | Typing | Associated Type | Description | Created on | Type Source |
|---|---|---|---|---|---|---|---|
| 1 | T_LOGENTRY | Protected | See coding | T_LOGENTRY | 20000503 | |
|
| 2 | T_PERSISTENCE_REF | Protected | See coding | T_PERSISTENCE_REF | 20000530 | |
|
| 3 | T_PROFILE | Protected | See coding | T_PROFILE | 20000428 | |
Method Signatures
Method CREATE_LOG_PROFILE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EX_PROFILE | Call by reference | Object reference (TYPE REF TO) | IF_SWF_LOG_PROFILE | Log-Profil | 20000510 | |||
| 2 | IM_LOGPROFILE | Call by reference | Type reference (TYPE) | SWF_LOGPRO | Name eines Logprofils | 20000510 | |||
| 3 | IM_LOGTYP | Call by reference | Type reference (TYPE) | SWF_LOGTYP | Logtyp zur Definition von Logprofilen | 20000510 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Log-Profil bereits vorhanden | 20000525 |
Method GET_CONTEXT_OBJECT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | RE_CONTEXT | Value transfer | Object reference (TYPE REF TO) | OBJECT | Kontext | 20000524 |
Method GET_CONTEXT_OBJECT on class CL_SWF_LOG_FACTORY has no exception.
Method GET_LOG_DEFAULT_PROFILE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EX_PROFILE | Call by reference | Object reference (TYPE REF TO) | IF_SWF_LOG_PROFILE | Log-Profil | 20000705 | |||
| 2 | IM_LOGTYP | Call by reference | Type reference (TYPE) | SWF_LOGTYP | Logtyp zur Definition von Logprofilen | 20000705 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Log-Profil nicht gefunden | 20000705 |
Method GET_LOG_ENTRIES_BY_EXCEPTION Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EX_LOGENTRIES | Call by reference | Type reference (TYPE) | SWF_LOGENTRIES | Tabelle mit Referenzen auf IF_SWF_LOG_ENTRY | 20000526 | |||
| 2 | IM_COMPONENT | Call by reference | Type reference (TYPE) | SWF_LOGCMP | Komponente eines Logtyps | 20000526 | |||
| 3 | IM_EXCEPTION | Call by reference | Object reference (TYPE REF TO) | CX_ROOT | Abstrakte Oberklasse aller globalen Exceptions | 20000526 | |||
| 4 | IM_LOGLEVEL | Call by reference | Type reference (TYPE) | SWF_LOGLEV | MC_LEVEL_MAX | Loglevel | 20000526 | ||
| 5 | IM_LOGPROFILE | Call by reference | Type reference (TYPE) | SWF_LOGPRO | Name eines Logprofils | 20000526 | |||
| 6 | IM_PERSISTENCE_CLASS | Call by reference | Type reference (TYPE) | SEOCLSNAME | Klasse für die Persistenz-Referenz | 20000530 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Log-Eintrag wird nicht benötigt | 20000602 | ||
| 2 | Log-Profil nicht gefunden | 20000602 | ||
| 3 | Ausnahme beim Anlegen eines Objekts | 20000531 |
Method GET_LOG_ENTRY Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EX_LOGENTRY | Call by reference | Object reference (TYPE REF TO) | IF_SWF_LOG_ENTRY | Log-Eintrag | 20000428 | |||
| 2 | IM_COMPONENT | Call by reference | Type reference (TYPE) | SWF_LOGCMP | Komponente eines Logtyps | 20000502 | |||
| 3 | IM_LOGGUID | Call by reference | Type reference (TYPE) | SWF_LOGKEY-LOGGUID | GUID im 'CHAR' Format in Großschreibung | 20000428 | |||
| 4 | IM_LOGLEVEL | Call by reference | Type reference (TYPE) | SWF_LOGLEV | MC_LEVEL_MAX | Loglevel | 20000523 | ||
| 5 | IM_LOGPROFILE | Call by reference | Type reference (TYPE) | SWF_LOGPRO | Name eines Logprofils | 20000428 | |||
| 6 | IM_PERSISTENCE_CLASS | Call by reference | Type reference (TYPE) | SEOCLSNAME | Klassenname der Persistenz-Klasse | 20000530 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Log-Eintrag wird nicht benötigt | 20000602 | ||
| 2 | Log-Profil nicht gefunden | 20000531 | ||
| 3 | Ausnahme beim Anlegen eines Objekts | 20000531 |
Method GET_LOG_MANAGER Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | RE_LOG_MANAGER | Value transfer | Object reference (TYPE REF TO) | IF_SWF_LOG_MANAGER | Log-Manager | 20000602 |
Method GET_LOG_MANAGER on class CL_SWF_LOG_FACTORY has no exception.
Method GET_LOG_PROFILE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EX_PROFILE | Call by reference | Object reference (TYPE REF TO) | IF_SWF_LOG_PROFILE | Log-Profil | 20000502 | |||
| 2 | IM_LOGPROFILE | Call by reference | Type reference (TYPE) | SWF_LOGPRO | Name eines Logprofils | 20000502 | |||
| 3 | IM_LOGTYP | Call by reference | Type reference (TYPE) | SWF_LOGTYP | Logtyp zur Definition von Logprofilen | 20000502 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Log-Profil nicht gefunden | 20000525 |
Method GET_PERSISTENCE_OBJECT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IM_PERSISTENCE_CLASS | Call by reference | Type reference (TYPE) | SEOCLSNAME | Objekttypname | 20000531 | |||
| 2 | RE_INSTANCE | Value transfer | Object reference (TYPE REF TO) | IF_SWF_LOG_PERSISTENCE | Persistenz des Log | 20000531 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Ausnahme beim Anlegen eines Objekts | 20000531 |
Method IS_ENTRY_REQUIRED Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IM_COMPONENT | Call by reference | Type reference (TYPE) | SWF_LOGCMP | Komponente eines Logtyps | 20000523 | |||
| 2 | IM_LOGLEVEL | Call by reference | Type reference (TYPE) | SWF_LOGLEV | Loglevel | 20000523 | |||
| 3 | IM_LOGPROFILE | Call by reference | Type reference (TYPE) | SWF_LOGPRO | Name eines Logprofils | 20000523 | |||
| 4 | IM_PERSISTENCE_CLASS | Call by reference | Type reference (TYPE) | SEOCLSNAME | Klassenname für Persistenz der Einträge | 20000531 | |||
| 5 | RE_REQUIRED | Value transfer | Type reference (TYPE) | XFELD | Eintrag gefordert = 'X' | 20000523 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Log-Profil nicht gefunden | 20000525 | ||
| 2 | Ausnahme beim Anlegen eines Objekts | 20000531 |
Method SET_CONTEXT_OBJECT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IM_CONTEXT | Call by reference | Object reference (TYPE REF TO) | OBJECT | Kontext | 20000524 |
Method SET_CONTEXT_OBJECT on class CL_SWF_LOG_FACTORY has no exception.
History
| Last changed by/on | SAP | 20110908 |
| SAP Release Created in | 50A |