LoggerInterface.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Component\HttpKernel\Log;
  11. use Psr\Log\LoggerInterface as PsrLogger;
  12. /**
  13. * LoggerInterface.
  14. *
  15. * @author Fabien Potencier <fabien@symfony.com>
  16. *
  17. * @deprecated since 2.2, to be removed in 3.0. Type-hint \Psr\Log\LoggerInterface instead.
  18. * @api
  19. */
  20. interface LoggerInterface extends PsrLogger
  21. {
  22. /**
  23. * @api
  24. * @deprecated since 2.2, to be removed in 3.0. Use emergency() which is PSR-3 compatible.
  25. */
  26. public function emerg($message, array $context = array());
  27. /**
  28. * @api
  29. * @deprecated since 2.2, to be removed in 3.0. Use critical() which is PSR-3 compatible.
  30. */
  31. public function crit($message, array $context = array());
  32. /**
  33. * @api
  34. * @deprecated since 2.2, to be removed in 3.0. Use error() which is PSR-3 compatible.
  35. */
  36. public function err($message, array $context = array());
  37. /**
  38. * @api
  39. * @deprecated since 2.2, to be removed in 3.0. Use warning() which is PSR-3 compatible.
  40. */
  41. public function warn($message, array $context = array());
  42. }