%ApplicationLogFence system variable
Description
Returns the current setting of the application log fence (AppLogFence) setting in the application server configuration file (PSAPPSRV.CFG.)
Note:
This is distinct from the PeopleTools LogFence capability which applies to PeopleTools level logging.
You can use this system variable to conditionally determine whether you want to do certain logging from your application. You generally use it with the following predefined PeopleCode constants.
| Numeric Value | Constant Value | Description |
|---|---|---|
|
1 |
%ApplicationLogFence_Error |
Allow all levels of errors to be written to the log. This is the lowest setting. |
|
2 |
%ApplicationLogFence_Warning |
Allowing only warnings or higher to be written to the log. |
|
3 |
%ApplicationLogFence_Level1 |
Allow only this level of errors or higher to be written to the log. |
|
4 |
%ApplicationLogFence_Level2 |
Allow only this level of errors or higher to be written to the log. |
|
5 |
%ApplicationLogFence_Level3 |
Allow only this level of errors to be written to the log. |
Example
If %ApplicationLogFence > %ApplicationLogFence_Warning then
/* do some logging */
End-if;