|
15 | 15 | </argument> |
16 | 16 | </arguments> |
17 | 17 | </type> |
| 18 | + |
| 19 | + <!-- Log cache invalidation event to separate file --> |
| 20 | + <type name="Magento\CloudComponents\Model\Logger\Handler\Debug"> |
| 21 | + <arguments> |
| 22 | + <argument name="fileName" xsi:type="string">/var/log/cache.log</argument> |
| 23 | + </arguments> |
| 24 | + </type> |
| 25 | + <virtualType name="Magento\CloudComponents\Model\Logger\CacheInvalidate" type="Magento\Framework\Logger\Monolog"> |
| 26 | + <arguments> |
| 27 | + <argument name="name" xsi:type="string">main</argument> |
| 28 | + <argument name="handlers" xsi:type="array"> |
| 29 | + <item name="debug" xsi:type="object">Magento\CloudComponents\Model\Logger\Handler\Debug</item> |
| 30 | + </argument> |
| 31 | + </arguments> |
| 32 | + </virtualType> |
| 33 | + <type name="Magento\CloudComponents\Model\Cache\InvalidateLogger"> |
| 34 | + <arguments> |
| 35 | + <argument name="logger" xsi:type="object">Magento\CloudComponents\Model\Logger\CacheInvalidate</argument> |
| 36 | + </arguments> |
| 37 | + </type> |
| 38 | + <preference for="Magento\Framework\Cache\InvalidateLogger" type="Magento\CloudComponents\Model\Cache\InvalidateLogger"/> |
| 39 | + |
| 40 | + <!-- Log full reindex action --> |
| 41 | + <virtualType name="Magento\CloudComponents\Model\Logger\Handler\Debug\Indexation" type="Magento\CloudComponents\Model\Logger\Handler\Debug"> |
| 42 | + <arguments> |
| 43 | + <argument name="fileName" xsi:type="string">/var/log/indexation.log</argument> |
| 44 | + </arguments> |
| 45 | + </virtualType> |
| 46 | + <virtualType name="Magento\CloudComponents\Model\Logger\Monolog\Indexation" type="Magento\Framework\Logger\Monolog"> |
| 47 | + <arguments> |
| 48 | + <argument name="name" xsi:type="string">main</argument> |
| 49 | + <argument name="handlers" xsi:type="array"> |
| 50 | + <item name="debug" xsi:type="object">Magento\CloudComponents\Model\Logger\Handler\Debug\Indexation</item> |
| 51 | + </argument> |
| 52 | + </arguments> |
| 53 | + </virtualType> |
| 54 | + <type name="Magento\CloudComponents\Model\Indexation\Logger"> |
| 55 | + <arguments> |
| 56 | + <argument name="logger" xsi:type="object">Magento\CloudComponents\Model\Logger\Monolog\Indexation</argument> |
| 57 | + </arguments> |
| 58 | + </type> |
| 59 | + |
| 60 | + |
| 61 | + <!-- Log Index invalidation action --> |
| 62 | + <type name="Magento\CloudComponents\Model\Observer\IndexerStateSaveAfter"> |
| 63 | + <arguments> |
| 64 | + <argument name="logger" xsi:type="object">Magento\CloudComponents\Model\Logger\Monolog\Indexation</argument> |
| 65 | + </arguments> |
| 66 | + </type> |
| 67 | + <type name="Magento\Framework\Indexer\ActionInterface"> |
| 68 | + <plugin name="cache_cleaner_after_reindex" type="Magento\CloudComponents\Model\Indexation\Logger" /> |
| 69 | + </type> |
18 | 70 | </config> |
0 commit comments