IDataLogger.php 440 B

1234567891011121314151617181920212223
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCP\Log;
  8. /**
  9. * Interface IDataLogger
  10. *
  11. * @since 18.0.1
  12. */
  13. interface IDataLogger {
  14. /**
  15. * allows to log custom data, similar to how logException works
  16. *
  17. * @since 18.0.1
  18. */
  19. public function logData(string $message, array $data, array $context = []): void;
  20. }