CakeLogInterface.php 1.0 KB

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