Enter a type and click search.




Results for Magento\Framework\Logger\Monolog

File: vendor/magento/magento2-base/app/etc/di.xml

<type name="Magento\Framework\Logger\Monolog">
    <arguments>
        <argument name="name" xsi:type="string">
            main
        </argument>
        <argument name="handlers" xsi:type="array">
            <item name="system" xsi:type="object">
                Magento\Framework\Logger\Handler\System
            </item>
            <item name="debug" xsi:type="object">
                Magento\Framework\Logger\Handler\Debug
            </item>
        </argument>
    </arguments>
</type>

This is a type configuration.

This configuration is the application level configuration (`app/etc/di.xml`) fo the object manager. It is not a part of a specific module, but will apply to all sub-applications in Magento 2 (cart, admin, api, cron, etc).

This configuration tells the Object Manager that when a user wants a Magento\Framework\Logger\Monolog object that the following arguments should be used in the foo object's constructor.

  • $name = "main";
  • $handlers = [...items...];

File: vendor/magento/magento2-base/app/etc/di.xml

<preference for="Psr\Log\LoggerInterface"
            type="Magento\Framework\Logger\Monolog"></preference>

This is a preference configuration.

This configuration is the application level configuration (`app/etc/di.xml`) fo the object manager. It is not a part of a specific module, but will apply to all sub-applications in Magento 2 (cart, admin, api, cron, etc).

This preference configuration tells the Object Manager when a user wants a Psr\Log\LoggerInterface object that it should return a Magento\Framework\Logger\Monolog object.

Results for Magento\Framework\Logger\Monolog

File: vendor/magento/module-shipping/etc/di.xml

<virtualType name="Magento\Shipping\Model\Method\VirtualLogger"
             type="Magento\Framework\Logger\Monolog">
    <arguments>
        <argument name="handlers" xsi:type="array">
            <item name="debug" xsi:type="object">
                Magento\Shipping\Model\Carrier\VirtualDebug
            </item>
        </argument>
    </arguments>
</virtualType>

This is a virtual type configuration.

This configuration is for the base area. Base area configurations will apply to all the sub-applications.

This virtualType configuration tells the Object Manager when a user wants a virtual Magento\Shipping\Model\Method\VirtualLogger object that it should return a Magento\Framework\Logger\Monolog object.

This configuration tells the Object Manager that when a user wants a Magento\Shipping\Model\Method\VirtualLogger object that the following arguments should be used in the foo object's constructor.

  • $handlers = [...items...];
Results for Magento\Framework\Logger\Monolog

File: vendor/magento/module-cron/etc/di.xml

<virtualType name="Magento\Cron\Model\VirtualLogger"
             type="Magento\Framework\Logger\Monolog">
    <arguments>
        <argument name="handlers" xsi:type="array">
            <item name="system" xsi:type="object">
                Magento\Cron\Model\VirtualLoggerHandler
            </item>
        </argument>
    </arguments>
</virtualType>

This is a virtual type configuration.

This configuration is for the base area. Base area configurations will apply to all the sub-applications.

This virtualType configuration tells the Object Manager when a user wants a virtual Magento\Cron\Model\VirtualLogger object that it should return a Magento\Framework\Logger\Monolog object.

This configuration tells the Object Manager that when a user wants a Magento\Cron\Model\VirtualLogger object that the following arguments should be used in the foo object's constructor.

  • $handlers = [...items...];
Results for Magento\Framework\Logger\Monolog

File: vendor/magento/module-payment/etc/di.xml

<virtualType name="Magento\Payment\Model\Method\VirtualLogger"
             type="Magento\Framework\Logger\Monolog">
    <arguments>
        <argument name="handlers" xsi:type="array">
            <item name="debug" xsi:type="object">
                Magento\Payment\Model\Method\VirtualDebug
            </item>
        </argument>
    </arguments>
</virtualType>

This is a virtual type configuration.

This configuration is for the base area. Base area configurations will apply to all the sub-applications.

This virtualType configuration tells the Object Manager when a user wants a virtual Magento\Payment\Model\Method\VirtualLogger object that it should return a Magento\Framework\Logger\Monolog object.

This configuration tells the Object Manager that when a user wants a Magento\Payment\Model\Method\VirtualLogger object that the following arguments should be used in the foo object's constructor.

  • $handlers = [...items...];