Drupal investigation

NullLogger.php 1.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. @trigger_error('The '.__NAMESPACE__.'\NullLogger class is deprecated since version 2.2 and will be removed in 3.0. Use the Psr\Log\NullLogger class instead from the psr/log Composer package.', E_USER_DEPRECATED);
  12. use Psr\Log\NullLogger as PsrNullLogger;
  13. /**
  14. * NullLogger.
  15. *
  16. * @author Fabien Potencier <fabien@symfony.com>
  17. */
  18. class NullLogger extends PsrNullLogger implements LoggerInterface
  19. {
  20. public function emerg($message, array $context = array())
  21. {
  22. @trigger_error('The '.__METHOD__.' method is deprecated since version 2.2 and will be removed in 3.0. You should use the new emergency() method instead, which is PSR-3 compatible.', E_USER_DEPRECATED);
  23. }
  24. public function crit($message, array $context = array())
  25. {
  26. @trigger_error('The '.__METHOD__.' method is deprecated since version 2.2 and will be removed in 3.0. You should use the new critical() method instead, which is PSR-3 compatible.', E_USER_DEPRECATED);
  27. }
  28. public function err($message, array $context = array())
  29. {
  30. @trigger_error('The '.__METHOD__.' method is deprecated since version 2.2 and will be removed in 3.0. You should use the new error() method instead, which is PSR-3 compatible.', E_USER_DEPRECATED);
  31. }
  32. public function warn($message, array $context = array())
  33. {
  34. @trigger_error('The '.__METHOD__.' method is deprecated since version 2.2 and will be removed in 3.0. You should use the new warning() method instead, which is PSR-3 compatible.', E_USER_DEPRECATED);
  35. }
  36. }