You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.0 KiB

3 years ago
  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 Symfony\Component\HttpFoundation\Request;
  12. /**
  13. * DebugLoggerInterface.
  14. *
  15. * @author Fabien Potencier <fabien@symfony.com>
  16. */
  17. interface DebugLoggerInterface
  18. {
  19. /**
  20. * Returns an array of logs.
  21. *
  22. * A log is an array with the following mandatory keys:
  23. * timestamp, message, priority, and priorityName.
  24. * It can also have an optional context key containing an array.
  25. *
  26. * @return array An array of logs
  27. */
  28. public function getLogs(Request $request = null);
  29. /**
  30. * Returns the number of errors.
  31. *
  32. * @return int The number of errors
  33. */
  34. public function countErrors(Request $request = null);
  35. /**
  36. * Removes all log records.
  37. */
  38. public function clear();
  39. }