summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorChristoph Wurst <ChristophWurst@users.noreply.github.com>2021-03-05 09:46:07 +0100
committerGitHub <noreply@github.com>2021-03-05 09:46:07 +0100
commit11e2286a8226d33c1f3443e1f544a6588fcc4a19 (patch)
tree2e95e72af10fc89fa3a246cf8b05060b8886d60f /lib/public
parentb1ca7463951039ee67f92eb39a0addcca4b64b10 (diff)
parent77a8ba0d1102635181c52ba368827242d8e3debb (diff)
downloadnextcloud-server-11e2286a8226d33c1f3443e1f544a6588fcc4a19.tar.gz
nextcloud-server-11e2286a8226d33c1f3443e1f544a6588fcc4a19.zip
Merge pull request #25588 from nextcloud/techdept/custom-psr-logger
Migrate custom loggers to PSR
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/Log/ILogFactory.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/public/Log/ILogFactory.php b/lib/public/Log/ILogFactory.php
index a2cb02e8759..54aa6456156 100644
--- a/lib/public/Log/ILogFactory.php
+++ b/lib/public/Log/ILogFactory.php
@@ -25,6 +25,7 @@
namespace OCP\Log;
use OCP\ILogger;
+use Psr\Log\LoggerInterface;
/**
* Interface ILogFactory
@@ -43,6 +44,15 @@ interface ILogFactory {
* @param string $path
* @return ILogger
* @since 14.0.0
+ * @deprecated use \OCP\Log\ILogFactory::getCustomPsrLogger
+ * @see \OCP\Log\ILogFactory::getCustomPsrLogger
*/
public function getCustomLogger(string $path): ILogger;
+
+ /**
+ * @param string $path
+ * @return LoggerInterface
+ * @since 22.0.0
+ */
+ public function getCustomPsrLogger(string $path): LoggerInterface;
}