This is an old revision of the document!


pbis logging, loglevel, logfiles



Documentation Website

View Log Settings

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.



Target File

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



Log Level

/opt/pbis/bin/lwsm set-log-level <service> <facility> <loglevel>
  • always
  • error
  • warning
  • info
  • verbose
  • debug
  • trace

Example:

/opt/pbis/bin/lwsm set-log-level lsass – debug