summaryrefslogtreecommitdiffstats
path: root/apps/workflowengine
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 /apps/workflowengine
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 'apps/workflowengine')
-rw-r--r--apps/workflowengine/lib/Service/Logger.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/workflowengine/lib/Service/Logger.php b/apps/workflowengine/lib/Service/Logger.php
index d5aca8f84b7..bfdb8b9ad41 100644
--- a/apps/workflowengine/lib/Service/Logger.php
+++ b/apps/workflowengine/lib/Service/Logger.php
@@ -31,11 +31,12 @@ use OCP\IConfig;
use OCP\ILogger;
use OCP\Log\IDataLogger;
use OCP\Log\ILogFactory;
+use Psr\Log\LoggerInterface;
class Logger {
/** @var ILogger */
protected $generalLogger;
- /** @var ILogger */
+ /** @var LoggerInterface */
protected $flowLogger;
/** @var IConfig */
private $config;
@@ -54,7 +55,7 @@ class Logger {
$default = $this->config->getSystemValue('datadirectory', \OC::$SERVERROOT . '/data') . '/flow.log';
$logFile = trim((string)$this->config->getAppValue(Application::APP_ID, 'logfile', $default));
if ($logFile !== '') {
- $this->flowLogger = $this->logFactory->getCustomLogger($logFile);
+ $this->flowLogger = $this->logFactory->getCustomPsrLogger($logFile);
}
}