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

/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



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