.. _logging: ******* Logging ******* Requests and responses can be logged for debugging purposes. In order to enable logging you will need to pass a PSR-3 compatible logger. .. code-block:: php setFilenameFormat('Y-m-d H:i'); // Set this logger for all services at once $postnl->setLogger($logger); // Set the logger for just the Labelling service $postnl->getLabellingService()->setLogger($logger); .. note:: This example used the Wappr logger. You can use any logger you like, as long as it implements the PSR-3 standard. To log all responses the level needs to be set at ``DEBUG``. For error responses you can set the debug level to ``ERROR``.