The LG (Log for Mix Number) command controls selective logging of specified tasks. This command is available only as part of Secure Access Control Module security-enhancement software or if the Security Accountability Facility is available.
If security administrator status is authorized for the system, then a security administrator usercode is required to execute this command.
Syntax

Explanation
<mix number list> LG
Starts logging all events for the tasks in the specified mix number list.
<mix number list> LG <action>
Selectively logs events for the specified tasks, depending on the specified action value. The <action> value is an integer in the range 0 through 15. Its significance is as follows.
Value |
Significance |
---|---|
0 |
Stops all logging of events |
1 |
Logs all successful actions |
2 |
Logs all actions that are attempted but fail |
4 |
Logs all security-relevant actions |
8 |
Logs all actions that result in security violations |
15 |
Logs all events (same as not specifying <action>) |
You can specify any number from 0 through 15. For example, a value of 5 (value 1 plus value 4) causes logging of all successful actions and all security-relevant actions.
Examples
Example 1
4872 LG
Example 2
3298,3367 LG 0