How we can write plugin error logs?

Hey,

there is dedicated logger service for plugins. It’s ID in the DI container is “pluginlogger”. Here is an example: https://github.com/shopwareLabs/SwagPaymentPayPalUnified/blob/master/Resources/services/services.xml#L119
Since Shopware 5.6 you are even able to create your own plugin specific logger: Shopware 5 upgrade guide

I will adjust the article to make it more clear, what should be used.

Best regards from Schöppingen

cool Michael Telgmann

1 „Gefällt mir“