aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/Log
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-01-19 16:15:14 +0100
committerJoas Schilling <coding@schilljs.com>2022-01-19 16:15:14 +0100
commit4c41abd8169e78aa35bd6ea9bd9eda6d76817085 (patch)
tree44274debf7d77eeff07353dfa3a0e6b5e418f716 /lib/public/Log
parenta7eefa293e4735ab9f249f9d12ced3e70823da35 (diff)
downloadnextcloud-server-4c41abd8169e78aa35bd6ea9bd9eda6d76817085.tar.gz
nextcloud-server-4c41abd8169e78aa35bd6ea9bd9eda6d76817085.zip
Allow to get custom loggers for syslog, errorlog and systemdlog too
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/public/Log')
-rw-r--r--lib/public/Log/ILogFactory.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/public/Log/ILogFactory.php b/lib/public/Log/ILogFactory.php
index 54ed761a8e7..6bbcf93bca8 100644
--- a/lib/public/Log/ILogFactory.php
+++ b/lib/public/Log/ILogFactory.php
@@ -51,8 +51,10 @@ interface ILogFactory {
/**
* @param string $path
+ * @param string $type
+ * @param string $tag
* @return LoggerInterface
- * @since 22.0.0
+ * @since 22.0.0 - Parameters $type and $tag were added in 24.0.0
*/
- public function getCustomPsrLogger(string $path): LoggerInterface;
+ public function getCustomPsrLogger(string $path, string $type = 'file', string $tag = 'Nextcloud'): LoggerInterface;
}