fastly/fastly-magento2

[Feature Request] Fastly admin controller events are not logging by Admin Event Logging

isitnikov opened this issue · 1 comments

Adobe Commerce has a feature https://experienceleague.adobe.com/docs/commerce-admin/systems/action-logs/action-log.html?lang=en Admin Actions Log (EE) that tracks admin user activity like Saving Products, Flushing Cache etc.

But, Fastly admin actions are not logging because it's not implemented on the module level.

You can add file etc/logging.xml into you module where you can specify which events should be logged (I assume that all events are important):

<?xml version="1.0"?>
<!--
/**
 * Copyright © 2016 Magento. All rights reserved.
 * See COPYING.txt for license details.
 */
-->
<logging xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Logging:etc/logging.xsd">
    <groups>
        <group name="group_identifier_here">
            <label translate="true">Action Group Label here</label>
            <expected_models>
                <expected_model class="Vendor\Module\Model\Class" />
            </expected_models>
            <events>
                <event controller_action="fullcontroller_actionname_here_save" action_alias="save" />
                <event controller_action="fullcontroller_actionname_here_delete"
                       action_alias="delete" />
            </events>
        </group>
    </groups>
</logging>

Hello, @isitnikov, thank you for bringing this up with us, we'll review this internally.