You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/addons/logging.md
+46-42Lines changed: 46 additions & 42 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,63 +5,39 @@ outline: [2, 6]
5
5
6
6
<iclass="fa-brands fa-github"></i> [Logging Addon on GitHub](https://github.com/abap2UI5-addons/logging)
7
7
8
-
Developing end-user business processes is not possible without adequate logging. The standard method for this in ABAP systems is the integrated Business Application Log (BAL), which works in on-premise systems and, with the new APIs, in ABAP Cloud. You might also consider open-source projects like the excellent [abap-logger](https://github.com/ABAP-Logger/ABAP-Logger). Ultimately, we need a way to display these messages for end users in abap2UI5 apps.<br>
8
+
Logging is essential for developing end-user business processes. In ABAP systems, the standard tool for this is the Business Application Log (BAL), which is supported in both on-premise systems and ABAP Cloud (via new APIs). Additionally, open-source projects like the excellent [abap-logger](https://github.com/ABAP-Logger/ABAP-Logger) offer valuable alternatives.
9
9
10
-
This add-on centralizes BAL logging UIs for abap2UI5 apps. Instead of creating multiple BAL popups individually, the goal is to consolidate BAL functionality here for collaborative expansion. Currently, only basic functionality is available. Have you already implemented BAL functionality with abap2UI5? Consider sharing it — PRs are welcome!
10
+
To display these messages for end-users in abap2UI5 apps, this add-on centralizes BAL logging UIs for easy integration and collaborative expansion.
11
11
12
-
### 1. BAL Messages (classic)
12
+
### Use cases
13
13
14
+
#### BAL Cloud
15
+
In ABAP Cloud environments, the BAL includes a new API. Use this API to import logging objects directly into the class `z2ui5add_cl_bal_cl` to display messages:
In on-premise ABAP systems, you can use the classic BAL APIs. As no specific logging object exists, simply import the BAL table into `z2ui5add_cl_bal_cl`:
65
41
```abap
66
42
METHOD z2ui5_if_app~main.
67
43
@@ -85,11 +61,8 @@ METHOD z2ui5_if_app~main.
85
61
ENDMETHOD.
86
62
```
87
63
88
-
89
-
### 4. ABAP-Logger
90
-
91
-
UI for the Open Source Project [**abap-logger**](https://github.com/ABAP-Logger/ABAP-Logger)
92
-
64
+
#### ABAP-Logger
65
+
In on-premise systems, you also have the option to install the open-source project [**abap-logger**](https://github.com/ABAP-Logger/ABAP-Logger), which simplifies logging with BAL. Here’s an example of how to use it with abap2UI5:
93
66
```abap
94
67
CLASS z2ui5add_cl_abap_logger_sample DEFINITION PUBLIC FINAL
95
68
CREATE PUBLIC .
@@ -116,3 +89,34 @@ CLASS z2ui5add_cl_abap_logger_sample IMPLEMENTATION.
116
89
ENDCLASS.
117
90
```
118
91
92
+
### BAL Cockpit
93
+
The concept of this app is to create a popup that shows all logs for a specific SLG1 logging object, designed to be non-SPA GUI and cloud-ready:
0 commit comments