From a00c8149f7f6fce4202c6c5ca4642a681d444750 Mon Sep 17 00:00:00 2001 From: "o.pinke" Date: Tue, 12 Mar 2024 19:19:19 +0100 Subject: [PATCH] use new log class --- includes/functions.mod_rewrite.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/includes/functions.mod_rewrite.php b/includes/functions.mod_rewrite.php index a787210..59772c1 100644 --- a/includes/functions.mod_rewrite.php +++ b/includes/functions.mod_rewrite.php @@ -23,6 +23,10 @@ * @link http://www.4fb.de * @link http://www.contenido.org */ + +use ConLite\Log\LogWriter; +use ConLite\Log\Log; + if (!defined('CON_FRAMEWORK')) { die('Illegal call'); } @@ -679,9 +683,9 @@ function mr_setConfiguration($clientId, array $config) { try { mkdir($sConfigClientPath, 0777, true); } catch (Exception $ex) { - $oWriter = cLogWriter::factory("File", array('destination' => 'contenido.log')); - $oLog = new cLog($oWriter); - $oLog->log($ex->getFile() . " (" . $ex->getLine() . "): " . $ex->getMessage(), cLog::WARN); + $writer = LogWriter::factory("File", array('destination' => 'contenido.log')); + $log = new Log($writer); + $log->log($ex->getFile() . " (" . $ex->getLine() . "): " . $ex->getMessage(), Log::WARN); } }