2.2. Writing to the WebTool Audit Log

In order to aid in troubleshooting and for security auditing purposes, it is recommended to output log lines whenever the WebTool is used to commit a change. This logfile is located at /var/log/webtool-audit.log and can be written to using the audit function. The logging module of the WebTool can be used to display and search this logfile.

use WebTool;

audit("Created a new user: $username");