2020-01-14 04:43:50 -05:00
|
|
|
<?php
|
2020-03-31 04:49:10 -04:00
|
|
|
|
2020-01-14 04:43:50 -05:00
|
|
|
declare(strict_types=1);
|
2020-03-31 04:49:10 -04:00
|
|
|
|
2020-01-14 04:43:50 -05:00
|
|
|
/**
|
2024-05-23 03:26:56 -04:00
|
|
|
* SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2020-01-14 04:43:50 -05:00
|
|
|
*/
|
|
|
|
|
namespace OCP\Log;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Interface IDataLogger
|
|
|
|
|
*
|
2020-01-28 07:00:13 -05:00
|
|
|
* @since 18.0.1
|
2020-01-14 04:43:50 -05:00
|
|
|
*/
|
|
|
|
|
interface IDataLogger {
|
|
|
|
|
/**
|
|
|
|
|
* allows to log custom data, similar to how logException works
|
|
|
|
|
*
|
2020-01-28 07:00:13 -05:00
|
|
|
* @since 18.0.1
|
2020-01-14 04:43:50 -05:00
|
|
|
*/
|
2020-01-28 07:00:13 -05:00
|
|
|
public function logData(string $message, array $data, array $context = []): void;
|
2020-01-14 04:43:50 -05:00
|
|
|
}
|