diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2021-02-11 16:03:11 +0100 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2021-02-11 16:16:34 +0100 |
commit | d45692ee9651f5dc32bee15d518a9c0cf5c5c2b9 (patch) | |
tree | b63930e5895f407813befe0a992d23a8e83c51f5 /lib/public/Log | |
parent | 5babad4f6fb983709e7851bb5cea4bc0d2c7fe4c (diff) | |
download | nextcloud-server-d45692ee9651f5dc32bee15d518a9c0cf5c5c2b9.tar.gz nextcloud-server-d45692ee9651f5dc32bee15d518a9c0cf5c5c2b9.zip |
Migrate custom loggers to PSR
This will help phase out the deprecated ILogger interface.
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/public/Log')
-rw-r--r-- | lib/public/Log/ILogFactory.php | 10 |
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; } |