Logger.php 664B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /*
  3. * This file is part of SwiftMailer.
  4. * (c) 2004-2009 Chris Corbyn
  5. *
  6. * For the full copyright and license information, please view the LICENSE
  7. * file that was distributed with this source code.
  8. */
  9. /**
  10. * Logs events in the Transport system.
  11. *
  12. * @package Swift
  13. * @subpackage Transport
  14. * @author Chris Corbyn
  15. */
  16. interface Swift_Plugins_Logger
  17. {
  18. /**
  19. * Add a log entry.
  20. *
  21. * @param string $entry
  22. */
  23. public function add($entry);
  24. /**
  25. * Clear the log contents.
  26. */
  27. public function clear();
  28. /**
  29. * Get this log as a string.
  30. *
  31. * @return string
  32. */
  33. public function dump();
  34. }