aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/ILogger.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/ILogger.php')
-rw-r--r--lib/public/ILogger.php40
1 files changed, 40 insertions, 0 deletions
diff --git a/lib/public/ILogger.php b/lib/public/ILogger.php
new file mode 100644
index 00000000000..54f9ffeca9a
--- /dev/null
+++ b/lib/public/ILogger.php
@@ -0,0 +1,40 @@
+<?php
+
+declare(strict_types=1);
+/**
+ * SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-FileCopyrightText: 2016 ownCloud, Inc.
+ * SPDX-License-Identifier: AGPL-3.0-only
+ */
+namespace OCP;
+
+/**
+ * Nextcloud logging levels.
+ * For historical reasons the logging levels are provided as interface constants.
+ *
+ * @since 7.0.0
+ * @since 20.0.0 deprecated logging methods in favor of \Psr\Log\LoggerInterface
+ * @since 31.0.0 removed deprecated logging methods - the interface is kept for Nextcloud log levels
+ */
+interface ILogger {
+ /**
+ * @since 14.0.0
+ */
+ public const DEBUG = 0;
+ /**
+ * @since 14.0.0
+ */
+ public const INFO = 1;
+ /**
+ * @since 14.0.0
+ */
+ public const WARN = 2;
+ /**
+ * @since 14.0.0
+ */
+ public const ERROR = 3;
+ /**
+ * @since 14.0.0
+ */
+ public const FATAL = 4;
+}