aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/AppFramework/ScopedPsrLogger.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/AppFramework/ScopedPsrLogger.php')
-rw-r--r--lib/private/AppFramework/ScopedPsrLogger.php42
1 files changed, 12 insertions, 30 deletions
diff --git a/lib/private/AppFramework/ScopedPsrLogger.php b/lib/private/AppFramework/ScopedPsrLogger.php
index 4ed91cdb6c0..0a8e2b0d303 100644
--- a/lib/private/AppFramework/ScopedPsrLogger.php
+++ b/lib/private/AppFramework/ScopedPsrLogger.php
@@ -3,26 +3,8 @@
declare(strict_types=1);
/**
- * @copyright 2020 Christoph Wurst <christoph@winzerhof-wurst.at>
- *
- * @author Christoph Wurst <christoph@winzerhof-wurst.at>
- * @author Maxence Lange <maxence@artificial-owl.com>
- *
- * @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 <http://www.gnu.org/licenses/>.
- *
+ * SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OC\AppFramework;
@@ -37,12 +19,12 @@ class ScopedPsrLogger implements LoggerInterface {
private $appId;
public function __construct(LoggerInterface $inner,
- string $appId) {
+ string $appId) {
$this->inner = $inner;
$this->appId = $appId;
}
- public function emergency($message, array $context = []) {
+ public function emergency($message, array $context = []): void {
$this->inner->emergency(
$message,
array_merge(
@@ -54,7 +36,7 @@ class ScopedPsrLogger implements LoggerInterface {
);
}
- public function alert($message, array $context = []) {
+ public function alert($message, array $context = []): void {
$this->inner->alert(
$message,
array_merge(
@@ -66,7 +48,7 @@ class ScopedPsrLogger implements LoggerInterface {
);
}
- public function critical($message, array $context = []) {
+ public function critical($message, array $context = []): void {
$this->inner->critical(
$message,
array_merge(
@@ -78,7 +60,7 @@ class ScopedPsrLogger implements LoggerInterface {
);
}
- public function error($message, array $context = []) {
+ public function error($message, array $context = []): void {
$this->inner->error(
$message,
array_merge(
@@ -90,7 +72,7 @@ class ScopedPsrLogger implements LoggerInterface {
);
}
- public function warning($message, array $context = []) {
+ public function warning($message, array $context = []): void {
$this->inner->warning(
$message,
array_merge(
@@ -102,7 +84,7 @@ class ScopedPsrLogger implements LoggerInterface {
);
}
- public function notice($message, array $context = []) {
+ public function notice($message, array $context = []): void {
$this->inner->notice(
$message,
array_merge(
@@ -114,7 +96,7 @@ class ScopedPsrLogger implements LoggerInterface {
);
}
- public function info($message, array $context = []) {
+ public function info($message, array $context = []): void {
$this->inner->info(
$message,
array_merge(
@@ -126,7 +108,7 @@ class ScopedPsrLogger implements LoggerInterface {
);
}
- public function debug($message, array $context = []) {
+ public function debug($message, array $context = []): void {
$this->inner->debug(
$message,
array_merge(
@@ -138,7 +120,7 @@ class ScopedPsrLogger implements LoggerInterface {
);
}
- public function log($level, $message, array $context = []) {
+ public function log($level, $message, array $context = []): void {
$this->inner->log(
$level,
$message,