From 0f33453610c46ef730192820017f8c1270b3096f Mon Sep 17 00:00:00 2001 From: Julius Härtl Date: Wed, 2 Feb 2022 09:57:50 +0100 Subject: Diagnostics event logging to Nextcloud log MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl Add config samples Signed-off-by: Julius Härtl --- lib/private/Diagnostics/Event.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/private/Diagnostics/Event.php') diff --git a/lib/private/Diagnostics/Event.php b/lib/private/Diagnostics/Event.php index 95b737155dc..0c3aa6ae29c 100644 --- a/lib/private/Diagnostics/Event.php +++ b/lib/private/Diagnostics/Event.php @@ -100,4 +100,8 @@ class Event implements IEvent { } return $this->end - $this->start; } + + public function __toString() { + return $this->getId() . ' ' . $this->getDescription() . ' ' . $this->getDuration(); + } } -- cgit v1.2.3