fdebug deprecated message update, update debug logger tester script

This commit is contained in:
Clemens Schwaighofer
2023-05-25 17:55:04 +09:00
parent 7c2cbbaca7
commit 250067927a
2 changed files with 6 additions and 2 deletions

View File

@@ -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() . "<br>";
print "GETCALLERCLASS(NON CLASS): " . \CoreLibs\Debug\Support::getCallerClass() . "<br>";
// fdebug
print "S::FSETFILENAME: " . FileWriter::fsetFolder(BASE . LOG) . "<br>";
print "S::FSETFILENAME: " . FileWriter::fsetFilename('class_test_debug_file.log') . "<br>";
print "S::FDEBUG: " . FileWriter::fdebug('CLASS TEST DEBUG FILE: ' . date('Y-m-d H:i:s')) . "<br>";

View File

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