This is an old revision of the document!
To view the current level and target of logging of a service, enter the following command:
/opt/pbis/bin/lwsm get-log <service>
For example, entering the following command
/opt/pbis/bin/lwsm get-log lsass
produces the following result
<default>: syslog LOG_DAEMON at ERROR
This indicates that the lsass service's default log level is error and is directed to syslog’s daemon facility.
You can use the following command to change the log target for a particular service and facility to log to a file:
/opt/pbis/bin/lwsm set-log-target <service> <facility> file <path>
Example:
/opt/pbis/bin/lwsm set-log-target lsass - file /var/log/lsass.log
You can use the following command to change the log target for a particular service and facility to the syslog:
/opt/pbis/bin/lwsm set-log-target <service> <facility> syslog
/opt/pbis/bin/lwsm set-log-level <service> <facility> <loglevel>
Example:
/opt/pbis/bin/lwsm set-log-level lsass – debug