YellowCube Logging

The YellowCube\Service takes a Psr\Log\LoggerInterface logger either as constructor argument:

$service = new YellowCube\Service($config, $soapClient, $logger);

or using a setter:


When not setting a logger instance, a NullLogger is used which ignores all logging.

Log levels

Of the available log levels the following are implemented:

  • DEBUG: Log every SOAP request and response.
  • INFO: Log YellowCube\Service method calls.
  • ERROR: Log SOAP errors.