forked from ABAP-Logger/ABAP-Logger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzif_logger_settings.intf.abap
92 lines (80 loc) · 3.05 KB
/
zif_logger_settings.intf.abap
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
interface zif_logger_settings public .
"! Is the log automatically saved when adding messages?
"! See setter for more details.
methods get_autosave
returning
value(r_auto_save) type abap_bool.
"! Set to true if the log is automatically saved when adding messages.
"!
"! If auto save is disabled, the save() method has to be called manually
"! to write the data to the database (it commits the LUW).
"! If auto save is enabled, the save() method has no effect.
"! By default, auto save is enabled.
"!
"! Be careful with enabled auto save when processing mass data because it
"! can decrease system performance significantly.
methods set_autosave
importing
i_auto_save type abap_bool
returning
value(r_self) type ref to zif_logger_settings.
"! Get the earliest date on which the log can be deleted.
"! See setter for more details.
methods get_expiry_date
returning
value(r_expiry_date) type aldate_del.
"! Set the earliest date on which the log can be deleted.
"! By default the log does not expire.
"!
"! Further information: https://launchpad.support.sap.com/#/notes/195157
methods set_expiry_date
importing
i_expiry_date type aldate_del
returning
value(r_self) type ref to zif_logger_settings.
"! Set the number of days after which the log can be deleted.
"! By default the log does not expire.
"!
"! Further information: https://launchpad.support.sap.com/#/notes/195157
methods set_expiry_in_days
importing
i_num_days type i
returning
value(r_self) type ref to zif_logger_settings.
"! Does the log have to be kept until the expiry date is reached?
"! See setter for more details.
methods get_must_be_kept_until_expiry
returning
value(r_must_be_kept_until_expiry) type del_before.
"! Set to true if log must be kept until the expiry date is reached. It
"! cannot be deleted before (in transaction SLG2).
"! The default is false.
"!
"! Further information: https://launchpad.support.sap.com/#/notes/195157
methods set_must_be_kept_until_expiry
importing
i_must_be_kept_until_expiry type del_before
returning
value(r_self) type ref to zif_logger_settings.
methods get_max_exception_drill_down
returning
value(r_levels) type i.
methods set_max_exception_drill_down
importing
i_levels type i
returning
value(r_self) type ref to zif_logger_settings.
"! Is a secondary database connection used to write the log entries to the database?
"! See setter for more details.
methods get_usage_of_secondary_db_conn
returning
value(r_2nd_db_connection_enabled) type flag.
"! Set to true if secondary database connection should be used to write the log entries to the database.
"! This is important if main program does a rollback (on purpose or after a dump).
"! The default is true.
methods set_usage_of_secondary_db_conn
importing
i_use_2nd_db_connection type flag
returning
value(r_self) type ref to zif_logger_settings.
endinterface.