Audit.ecl 874 B

123456789101112131415161718192021222324
  1. /*##############################################################################
  2. ## HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems®. All rights reserved.
  3. ############################################################################## */
  4. IMPORT lib_auditlib;
  5. RETURN MODULE
  6. /*
  7. * Generates an audit entry, and returns true if successful. The function writes the message into the Windows event
  8. * log or Linux system log.
  9. *
  10. * @param audit_type The type of the audit message.
  11. * DEBUG|INFO|ERROR|ACCESS_FAILURE|ACCESS_SUCCESS|AUDIT_LOG_FAILURE
  12. * @param msg The string containing the audit entry text.
  13. * @param data_block The binary data to associate with the message.
  14. */
  15. EXPORT BOOLEAN Audit(string audit_type, string msg, data data_block = D'') :=
  16. lib_auditlib.AuditLib.AuditData(audit_type, msg, data_block);
  17. END;