1
0
Fork 0

use new log class

Dieser Commit ist enthalten in:
o.pinke 2024-03-12 19:19:19 +01:00
Ursprung 606b832ce8
Commit a00c8149f7

Datei anzeigen

@ -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);
}
}