From 5111715c344f2bcd429db2629aba7bf1a741f47e Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Mon, 5 Oct 2020 13:31:58 +0200 Subject: [PATCH] Migrate logging docs to new interface Signed-off-by: Christoph Wurst --- developer_manual/basics/logging.rst | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/developer_manual/basics/logging.rst b/developer_manual/basics/logging.rst index 42ed7401b..272a34e07 100644 --- a/developer_manual/basics/logging.rst +++ b/developer_manual/basics/logging.rst @@ -4,7 +4,7 @@ Logging .. sectionauthor:: Bernhard Posselt -The logger is present by default in the container. The app that is Logging is +The logger is present by default in the container. The app that is logging is set automatically. The logger can be used in the following way: @@ -14,21 +14,20 @@ The logger can be used in the following way: logger = $logger; $this->appName = $appName; } public function log($message) { - $this->logger->error($message, array('extra_context' => 'my extra context')); + $this->logger->error($message, ['extra_context' => 'my extra context']); } }