<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <!-- ATP logger configuration -->
    <virtualType name="CyberSourceAccountTakeoverProtectionLog" type="CyberSource\Core\Model\Logger">
        <arguments>
            <argument name="handlers"  xsi:type="array">
                <item name="cybs" xsi:type="object">CyberSourceAccountTakeoverProtectionLogHandler</item>
            </argument>
        </arguments>
    </virtualType>
    <virtualType name="CyberSourceAccountTakeoverProtectionLogHandler" type="Magento\Framework\Logger\Handler\Base">
        <arguments>
            <argument name="fileName" xsi:type="string">/var/log/cybs.atp.log</argument>
        </arguments>
    </virtualType>

    <!-- Injecting logger -->
    <type name="CyberSource\Atp\Service\CyberSourceSoapAPI">
        <arguments>
            <argument name="atpLogger" xsi:type="object">CyberSourceAccountTakeoverProtectionLog</argument>
        </arguments>
    </type>
</config>
