fdebug deprecated message update, update debug logger tester script
This commit is contained in:
@@ -129,7 +129,10 @@ class TestL
|
|||||||
public $log;
|
public $log;
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
$this->log = new CoreLibs\Debug\Logging();
|
$this->log = new CoreLibs\Debug\Logging([
|
||||||
|
'log_folder' => '../log/',
|
||||||
|
'file_id' => 'DebugTestTestLLogger',
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Undocumented function
|
* Undocumented function
|
||||||
@@ -206,6 +209,7 @@ print "AO-CLASS: DEBUG: " . $ao->test() . "<br>";
|
|||||||
print "GETCALLERCLASS(NON CLASS): " . \CoreLibs\Debug\Support::getCallerClass() . "<br>";
|
print "GETCALLERCLASS(NON CLASS): " . \CoreLibs\Debug\Support::getCallerClass() . "<br>";
|
||||||
|
|
||||||
// fdebug
|
// fdebug
|
||||||
|
print "S::FSETFILENAME: " . FileWriter::fsetFolder(BASE . LOG) . "<br>";
|
||||||
print "S::FSETFILENAME: " . FileWriter::fsetFilename('class_test_debug_file.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>";
|
print "S::FDEBUG: " . FileWriter::fdebug('CLASS TEST DEBUG FILE: ' . date('Y-m-d H:i:s')) . "<br>";
|
||||||
|
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ class FileWriter
|
|||||||
) {
|
) {
|
||||||
/** @deprecated Do not use this anymore, define path with fsetFolder */
|
/** @deprecated Do not use this anymore, define path with fsetFolder */
|
||||||
trigger_error(
|
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
|
E_USER_DEPRECATED
|
||||||
);
|
);
|
||||||
self::$debug_folder = BASE . LOG;
|
self::$debug_folder = BASE . LOG;
|
||||||
|
|||||||
Reference in New Issue
Block a user