diff --git a/www/admin/class_test.db.php b/www/admin/class_test.db.php
index c0850ce7..fd42fd5e 100644
--- a/www/admin/class_test.db.php
+++ b/www/admin/class_test.db.php
@@ -3,10 +3,10 @@
* @phan-file-suppress PhanTypeSuspiciousStringExpression
*/
-$DEBUG_ALL_OVERRIDE = 0; // set to 1 to debug on live/remote server locations
-$DEBUG_ALL = 1;
-$PRINT_ALL = 1;
-$DB_DEBUG = 1;
+$DEBUG_ALL_OVERRIDE = false; // set to 1 to debug on live/remote server locations
+$DEBUG_ALL = true;
+$PRINT_ALL = true;
+$DB_DEBUG = true;
if ($DEBUG_ALL) {
error_reporting(E_ALL | E_STRICT | E_ERROR | E_WARNING | E_PARSE | E_COMPILE_ERROR);
diff --git a/www/admin/class_test.debug.php b/www/admin/class_test.debug.php
index 7d8d0149..c25306b8 100644
--- a/www/admin/class_test.debug.php
+++ b/www/admin/class_test.debug.php
@@ -100,6 +100,23 @@ print "CLASS EXTEND: DEBUG/tl: ".$tr->test('TESTR OUTSIDE')."
";
print "CLASS EXTEND: DEBUG/tr: ".$tr->subTest()."
";
print "CLASS EXTEND: PRINTERRORMSG:
".$tr->log->printErrorMsg()."
";
+// test attaching a logger from outside
+class AttachOutside
+{
+ public $log;
+ public function __construct(object $logger_class)
+ {
+ $this->log = $logger_class;
+ }
+ public function test()
+ {
+ $this->log->debug('ATTACHOUTSIDE', 'A test');
+ return get_class($this);
+ }
+}
+$ao = new AttachOutside($basic->log);
+print "AO-CLASS: DEBUG: ".$ao->test()."
";
+
print "GETCALLERCLASS(NON CLASS): ".\CoreLibs\Debug\Support::getCallerClass()."
";
// fdebug
diff --git a/www/lib/CoreLibs/Basic.php b/www/lib/CoreLibs/Basic.php
index 714a51af..15b860e2 100644
--- a/www/lib/CoreLibs/Basic.php
+++ b/www/lib/CoreLibs/Basic.php
@@ -13,6 +13,7 @@
* basic class start class for ALL clases, holds basic vars, infos, methods, etc
*
* HISTORY:
+* 2021/06/16 (cs) CLASS MOSTLY DEPRECATED: moved all methids in their own classes
* 2010/12/24 (cs) add crypt classes with auto detect what crypt we can use, add php version check class
* 2008/08/07 (cs) fixed strange DEBUG_ALL on off behavour. data was written even thought DBEUG_ALL was off. now no debug logging is done at all if DEBUG_ALL is off
* 2007/11/13 (cs) add Comparedate function