Audit log for entire Module

Hi All,


is it possible to audit log for all the field for a specific module?
in other words, i need to apply audit log functionality for entire module, could any one help me.

i have already gone through the audit log documentation, as per the documents we can apply audit log for specific field via studio 
but my requirement is to apply all the fields which is appeared in custom module
currently, i'm using this (version 10.0.2)

Any suggestion would be appreciated.

Thanks

Parents
  • I agree to  , running an audit on all fields of a module may create some performance and some disk space issues.

    But for tests e.g. of an interface it may be helpful to switch the audit on for a certain time.

    To do that you can prepare a file to switch all fields on.

    E.g. this file could look like this:

    <?php 
    $dictionary["myModule"]["fields"]["name"]["audited"] = true;
    $dictionary["myModule"]["fields"]["field1"]["audited"] = true;
    $dictionary["myModule"]["fields"]["field2"]["audited"] = true;
    $dictionary["myModule"]["fields"]["field3"]["audited"] = true;
    $dictionary["myModule"]["fields"]["field4"]["audited"] = true;
    

    You can install this file to custom/Extension/modules/myModule/Ext/Vardefs/audit_on.php to switch all audits on and deinstall it again to return to the normal audit states.

Reply
  • I agree to  , running an audit on all fields of a module may create some performance and some disk space issues.

    But for tests e.g. of an interface it may be helpful to switch the audit on for a certain time.

    To do that you can prepare a file to switch all fields on.

    E.g. this file could look like this:

    <?php 
    $dictionary["myModule"]["fields"]["name"]["audited"] = true;
    $dictionary["myModule"]["fields"]["field1"]["audited"] = true;
    $dictionary["myModule"]["fields"]["field2"]["audited"] = true;
    $dictionary["myModule"]["fields"]["field3"]["audited"] = true;
    $dictionary["myModule"]["fields"]["field4"]["audited"] = true;
    

    You can install this file to custom/Extension/modules/myModule/Ext/Vardefs/audit_on.php to switch all audits on and deinstall it again to return to the normal audit states.

Children
No Data