ILogger.php 829 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-FileCopyrightText: 2016 ownCloud, Inc.
  6. * SPDX-License-Identifier: AGPL-3.0-only
  7. */
  8. namespace OCP;
  9. /**
  10. * Nextcloud logging levels.
  11. * For historical reasons the logging levels are provided as interface constants.
  12. *
  13. * @since 7.0.0
  14. * @since 20.0.0 deprecated logging methods in favor of \Psr\Log\LoggerInterface
  15. * @since 31.0.0 removed deprecated logging methods - the interface is kept for Nextcloud log levels
  16. */
  17. interface ILogger {
  18. /**
  19. * @since 14.0.0
  20. */
  21. public const DEBUG = 0;
  22. /**
  23. * @since 14.0.0
  24. */
  25. public const INFO = 1;
  26. /**
  27. * @since 14.0.0
  28. */
  29. public const WARN = 2;
  30. /**
  31. * @since 14.0.0
  32. */
  33. public const ERROR = 3;
  34. /**
  35. * @since 14.0.0
  36. */
  37. public const FATAL = 4;
  38. }