Logger.php 618 B

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. *
  12. * @author Chris Corbyn
  13. */
  14. interface Swift_Plugins_Logger
  15. {
  16. /**
  17. * Add a log entry.
  18. *
  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. *
  29. * @return string
  30. */
  31. public function dump();
  32. }