diff --git a/www/admin/class_test.debug.php b/www/admin/class_test.debug.php index 2ab7dd5b..02a4c2d9 100644 --- a/www/admin/class_test.debug.php +++ b/www/admin/class_test.debug.php @@ -129,7 +129,10 @@ class TestL public $log; public function __construct() { - $this->log = new CoreLibs\Debug\Logging(); + $this->log = new CoreLibs\Debug\Logging([ + 'log_folder' => '../log/', + 'file_id' => 'DebugTestTestLLogger', + ]); } /** * Undocumented function @@ -206,6 +209,7 @@ print "AO-CLASS: DEBUG: " . $ao->test() . "
"; print "GETCALLERCLASS(NON CLASS): " . \CoreLibs\Debug\Support::getCallerClass() . "
"; // fdebug +print "S::FSETFILENAME: " . FileWriter::fsetFolder(BASE . LOG) . "
"; print "S::FSETFILENAME: " . FileWriter::fsetFilename('class_test_debug_file.log') . "
"; print "S::FDEBUG: " . FileWriter::fdebug('CLASS TEST DEBUG FILE: ' . date('Y-m-d H:i:s')) . "
"; diff --git a/www/lib/CoreLibs/Debug/FileWriter.php b/www/lib/CoreLibs/Debug/FileWriter.php index 27fe3e10..35234f9a 100644 --- a/www/lib/CoreLibs/Debug/FileWriter.php +++ b/www/lib/CoreLibs/Debug/FileWriter.php @@ -77,7 +77,7 @@ class FileWriter ) { /** @deprecated Do not use this anymore, define path with fsetFolder */ trigger_error( - 'fsetFolder must be set first. Setting via LOG_FILE_ID and LOg constants is deprecated', + 'fsetFolder must be set first. Setting via LOG_FILE_ID and LOG constants is deprecated', E_USER_DEPRECATED ); self::$debug_folder = BASE . LOG;