From 46aaeb45612e20b6f460396533faf7f26ed1d6f7 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Tue, 14 Jan 2020 10:43:50 +0100 Subject: log Flow activity Signed-off-by: Arthur Schiwon --- lib/public/Log/IDataLogger.php | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 lib/public/Log/IDataLogger.php (limited to 'lib/public/Log') diff --git a/lib/public/Log/IDataLogger.php b/lib/public/Log/IDataLogger.php new file mode 100644 index 00000000000..895ba43f5ca --- /dev/null +++ b/lib/public/Log/IDataLogger.php @@ -0,0 +1,42 @@ + + * + * @author Arthur Schiwon + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ + +namespace OCP\Log; + +/** + * Interface IDataLogger + * + * @package OCP\Log + * @since 18.0.0 + */ +interface IDataLogger { + + /** + * allows to log custom data, similar to how logException works + * + * @since 18.0.0 + */ + public function logData(array $data, array $context = []): void; + +} -- cgit v1.2.3 -internal-shares-parameter-better-distinction Nextcloud server, a safe home for all your data: https://github.com/nextcloud/serverwww-data
summaryrefslogtreecommitdiffstats
blob: 76331fecc5404a87d497c3ace9456dede26a48a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63