NullLogger.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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\NullLogger as PsrNullLogger;
  12. /**
  13. * NullLogger.
  14. *
  15. * @author Fabien Potencier <fabien@symfony.com>
  16. *
  17. * @api
  18. */
  19. class NullLogger extends PsrNullLogger implements LoggerInterface
  20. {
  21. /**
  22. * @api
  23. * @deprecated since 2.2, to be removed in 3.0. Use emergency() which is PSR-3 compatible.
  24. */
  25. public function emerg($message, array $context = array())
  26. {
  27. }
  28. /**
  29. * @api
  30. * @deprecated since 2.2, to be removed in 3.0. Use critical() which is PSR-3 compatible.
  31. */
  32. public function crit($message, array $context = array())
  33. {
  34. }
  35. /**
  36. * @api
  37. * @deprecated since 2.2, to be removed in 3.0. Use error() which is PSR-3 compatible.
  38. */
  39. public function err($message, array $context = array())
  40. {
  41. }
  42. /**
  43. * @api
  44. * @deprecated since 2.2, to be removed in 3.0. Use warning() which is PSR-3 compatible.
  45. */
  46. public function warn($message, array $context = array())
  47. {
  48. }
  49. }