Logger.php 640B

123456789101112131415161718192021222324252627282930313233343536
  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. * @package Swift
  12. * @subpackage Transport
  13. * @author Chris Corbyn
  14. */
  15. interface Swift_Plugins_Logger
  16. {
  17. /**
  18. * Add a log entry.
  19. * @param string $entry
  20. */
  21. public function add($entry);
  22. /**
  23. * Clear the log contents.
  24. */
  25. public function clear();
  26. /**
  27. * Get this log as a string.
  28. * @return string
  29. */
  30. public function dump();
  31. }