diff --git a/php/libraries/Module.class.inc b/php/libraries/Module.class.inc index 16ba64d40af..fcb105a627a 100644 --- a/php/libraries/Module.class.inc +++ b/php/libraries/Module.class.inc @@ -153,6 +153,12 @@ abstract class Module extends \LORIS\Router\PrefixRouter string $name, string $moduledir ) { + $loglevel = $loris->getConfiguration() + ->getLogSettings() + ->getRequestLogLevel(); + + $this->logger = new \LORIS\Log\ErrorLogLogger($loglevel); + parent::__construct( new \ArrayIterator( [