1: <?php
2:
3: /**
4: * Avisota newsletter and mailing system
5: *
6: * PHP Version 5.3
7: *
8: * @copyright bit3 UG 2013
9: * @author Tristan Lins <tristan.lins@bit3.de>
10: * @package avisota-core
11: * @license LGPL-3.0+
12: * @link http://avisota.org
13: */
14:
15: namespace Avisota\Queue;
16:
17: use Psr\Log\LoggerInterface;
18:
19: /**
20: * A queue that logs its actions.
21: *
22: * A succeeded transport will be logged as debug message.
23: * A partial succeeded transport will be logged as warn message.
24: * A failed transport will be logged as error message.
25: *
26: * @package avisota-core
27: */
28: interface LoggingQueueInterface
29: {
30: /**
31: * Set the logger for this queue.
32: *
33: * @param LoggerInterface $logger
34: *
35: * @return QueueInterface
36: */
37: public function setLogger(LoggerInterface $logger = null);
38:
39: /**
40: * Get the logger for this queue.
41: *
42: * @return LoggerInterface|null
43: */
44: public function getLogger();
45: }
46: