LogAnonymizerInterface.php 792 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /**
  3. * Refer to LICENSE.txt distributed with the Temando Shipping module for notice of license
  4. */
  5. namespace Temando\Shipping\Webservice\Logger;
  6. /**
  7. * Temando Log Message Anonymizer
  8. *
  9. * @package Temando\Shipping\Webservice
  10. * @author Christoph Aßmann <christoph.assmann@netresearch.de>
  11. * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
  12. * @link http://www.temando.com/
  13. */
  14. interface LogAnonymizerInterface
  15. {
  16. /**
  17. * Strip any sensitive data from message.
  18. *
  19. * @param string $message
  20. * @return string
  21. */
  22. public function anonymize($message);
  23. /**
  24. * Processor for Monolog log records.
  25. *
  26. * @param mixed[] $record
  27. * @return mixed[]
  28. */
  29. public function __invoke(array $record);
  30. }