Auditing Actions

Maybe I missed this in the Auditing profile section, but how would I create my own custom entries for the auditing system? I’d like to create entries based on actions taken by the operator. For example, if the user opens a valve, I’d like to make an entry listing the users that entered their pins and the valve that was opened.