CakeLogInterface.php 984 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /**
  3. * CakeLogInterface
  4. *
  5. * PHP 5
  6. *
  7. * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
  8. * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
  9. *
  10. * Licensed under The MIT License
  11. * Redistributions of files must retain the above copyright notice.
  12. *
  13. * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
  14. * @link http://cakephp.org CakePHP(tm) Project
  15. * @package Cake.Log
  16. * @since CakePHP(tm) v 2.0
  17. * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
  18. */
  19. /**
  20. * CakeLogStreamInterface is the interface that should be implemented
  21. * by all classes that are going to be used as Log streams.
  22. *
  23. * @package Cake.Log
  24. */
  25. interface CakeLogInterface {
  26. /**
  27. * Write method to handle writes being made to the Logger
  28. *
  29. * @param string $type
  30. * @param string $message
  31. * @return void
  32. */
  33. public function write($type, $message);
  34. }