Logger.php 622B

1234567891011121314151617181920212223242526272829303132333435363738
  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. }