summaryrefslogtreecommitdiffstats
path: root/apps/workflowengine/lib
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2021-02-11 16:17:37 +0100
committerChristoph Wurst <christoph@winzerhof-wurst.at>2021-02-11 16:17:37 +0100
commit77a8ba0d1102635181c52ba368827242d8e3debb (patch)
tree04be8c1689df64981e373e2702f428c819461c1e /apps/workflowengine/lib
parentd45692ee9651f5dc32bee15d518a9c0cf5c5c2b9 (diff)
downloadnextcloud-server-77a8ba0d1102635181c52ba368827242d8e3debb.tar.gz
nextcloud-server-77a8ba0d1102635181c52ba368827242d8e3debb.zip
Migrate WFE to the new PSR logger
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps/workflowengine/lib')
-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);
}
}