php - Magento Admin Actions Log - How to capture mass action data? -
we've created module enterprise has 2 controller actions, 1 index , other save massaction. we're logging admin actions log following logging.xml:
<?xml version="1.0" encoding="utf-8"?> <logging> <acme_productlabels translate="label"> <label>acme product labels</label> <actions> <productlabels_productlabels_print> <action>save</action> <post_dispatch>postdispatchgeneric</post_dispatch> </productlabels_productlabels_print> <productlabels_productlabels_index> <action>view</action> <post_dispatch>postdispatchsimplesave</post_dispatch> </productlabels_productlabels_index> </actions> </acme_productlabels> </logging>
this uses custom route, added observer in config.xml accomplish this:
<config> <adminhtml> <events> <controller_action_postdispatch_productlabels> <observers> <enterprise_logging> <class>enterprise_logging/observer</class> <method>controllerpostdispatch</method> </enterprise_logging> </observers> </controller_action_postdispatch_productlabels> </events> </adminhtml> </config>
this works fine index, save action, fails. when use postdispatchsimplesave save action, logs action without full details.
we need save action, when logged, include parameters submitted save action. includes selection of products, quantity, , boolean value, submitted massaction in grid.
so our basic question is, how log full details of save action in magento's admin action log?
Comments
Post a Comment