]> git.mxchange.org Git - core.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Fri, 31 Jan 2025 22:57:45 +0000 (23:57 +0100)
committerRoland Häder <roland@mxchange.org>
Fri, 31 Jan 2025 22:57:45 +0000 (23:57 +0100)
- lesser debugOutput() (deprecated) method invocations

framework/main/classes/factories/stacks/class_FileStackFactory.php
framework/main/classes/factories/xml/class_XmlTemplateEngineFactory.php
framework/main/classes/index/file/class_BaseFileIndex.php
framework/main/classes/parser/xml/class_XmlParser.php

index 32d6326f159d3c9743628c1f10f2b41af82f5f2e..81d9f77ba42acc305d814f88743c3466a2fbf416 100644 (file)
@@ -55,7 +55,7 @@ class FileStackFactory extends BaseFactory {
         */
        public static final function createFileStackInstance (string $prefix, string $stackName) {
                // Validate parameter
-               //* NOISY-DEBUG */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('FILE-STACK-FACTORY: prefix=%s,stackName=%s - CALLED!', $prefix, $stackName));
+               //* NOISY-DEBUG */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage(sprintf('FILE-STACK-FACTORY: prefix=%s,stackName=%s - CALLED!', $prefix, $stackName));
                if (empty($prefix)) {
                        // Throw IAE
                        throw new InvalidArgumentException('Parameter "prefix" is empty', FrameworkInterface::EXCEPTION_INVALID_ARGUMENT);
@@ -85,7 +85,7 @@ class FileStackFactory extends BaseFactory {
                }
 
                // Return the instance
-               //* NOISY-DEBUG */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('FILE-STACK-FACTORY: stackInstance=%s - EXIT!', $stackInstance->__toString()));
+               //* NOISY-DEBUG */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage(sprintf('FILE-STACK-FACTORY: stackInstance=%s - EXIT!', $stackInstance->__toString()));
                return $stackInstance;
        }
 
index f29e271bd03993b01d34acccc5a4e19d380618a0..8c954acef34382ba42721902864ae2f9ca038132 100644 (file)
@@ -56,7 +56,7 @@ class XmlTemplateEngineFactory extends BaseFactory {
         */
        public static final function createXmlTemplateEngineInstance (string $configKey) {
                // Validate parameter
-               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('XML-TEMPLATE-ENGINE-FACTORY: configKey=%s - CALLED!', $configKey));
+               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage(sprintf('XML-TEMPLATE-ENGINE-FACTORY: configKey=%s - CALLED!', $configKey));
                if (empty($configKey)) {
                        // Throw IAE
                        throw new InvalidArgumentException('Paramter "configKey" is empty', FrameworkInterface::EXCEPTION_INVALID_ARGUMENT);
@@ -84,7 +84,7 @@ class XmlTemplateEngineFactory extends BaseFactory {
                }
 
                // Return the instance
-               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('XML-TEMPLATE-ENGINE-FACTORY: templateInstance=%s - EXIT!', $templateInstance->__toString()));
+               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage(sprintf('XML-TEMPLATE-ENGINE-FACTORY: templateInstance=%s - EXIT!', $templateInstance->__toString()));
                return $templateInstance;
        }
 
index 080678fc73d9a98a1b8001dc4b6b9cea4c317f7a..8b67d7e08182c25efac7861b3747782c0f2b1dcd 100644 (file)
@@ -181,7 +181,7 @@ abstract class BaseFileIndex extends BaseIndex implements FileIndexer {
         */
        protected function initFileIndex (SplFileInfo $fileInfoInstance) {
                // Get a file i/o pointer instance for index file
-               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('BASE-FILE-INDEX: fileInfoInstance[%s]=%s - CALLED!', get_class($fileInfoInstance), $fileInfoInstance));
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage(sprintf('BASE-FILE-INDEX: fileInfoInstance[%s]=%s - CALLED!', get_class($fileInfoInstance), $fileInfoInstance));
                $fileInstance = ObjectFactory::createObjectByConfiguredName('index_file_class', array($fileInfoInstance, $this));
 
                // Get iterator instance
@@ -259,7 +259,7 @@ abstract class BaseFileIndex extends BaseIndex implements FileIndexer {
                }
 
                // Return it
-               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('BASE-FILE-INDEX: self::minimumBlockLength=%d - EXIT!', self::$minimumBlockLength));
+               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage(sprintf('BASE-FILE-INDEX: self::minimumBlockLength=%d - EXIT!', self::$minimumBlockLength));
                return self::$minimumBlockLength;
        }
 
@@ -274,7 +274,7 @@ abstract class BaseFileIndex extends BaseIndex implements FileIndexer {
                $fileSize = $this->getIteratorInstance()->getBinaryFileInstance()->getFileSize();
 
                // Return it
-               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('BASE-FILE-INDEX: fileSize=%d - EXIT!', $fileSize));
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage(sprintf('BASE-FILE-INDEX: fileSize=%d - EXIT!', $fileSize));
                return $fileSize;
        }
 
@@ -289,7 +289,7 @@ abstract class BaseFileIndex extends BaseIndex implements FileIndexer {
         */
        public function searchNextGap (int $length) {
                // Validate parameter
-               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('BASE-FILE-INDEX: length=%d - CALLED!', $length));
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage(sprintf('BASE-FILE-INDEX: length=%d - CALLED!', $length));
                if ($length <= 0) {
                        // Throw IAE
                        throw new InvalidArgumentException(sprintf('length=%d is not valid', $length));
@@ -310,7 +310,7 @@ abstract class BaseFileIndex extends BaseIndex implements FileIndexer {
         */
        public function writeAtPosition (int $seekPosition, string $dataStream) {
                // Validate parameter
-               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('BASE-FILE-INDEX: seekPosition=%d,dataStream(%d)=%s - CALLED!', $seekPosition, strlen($dataStream), $dataStream));
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage(sprintf('BASE-FILE-INDEX: seekPosition=%d,dataStream(%d)=%s - CALLED!', $seekPosition, strlen($dataStream), $dataStream));
                if ($seekPosition < 0) {
                        // Invalid seek position
                        throw new OutOfBoundsException(sprintf('seekPosition=%d is not valid.', $seekPosition));
@@ -324,7 +324,7 @@ abstract class BaseFileIndex extends BaseIndex implements FileIndexer {
                $status = $this->getIteratorInstance()->getBinaryFileInstance()->writeAtPosition($seekPosition, $dataStream);
 
                // Return status
-               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('BASE-FILE-INDEX: status[%s]=%d - EXIT!', gettype($status), $status));
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage(sprintf('BASE-FILE-INDEX: status[%s]=%d - EXIT!', gettype($status), $status));
                return $status;
        }
 
index 9565d7b47b461beff6fdcb99c0c2da1557a684d7..8e2584be0fdb24969d63788109741275af1da32e 100644 (file)
@@ -71,7 +71,7 @@ class XmlParser extends BaseParser implements Parseable {
         */
        public function parseXmlContent (string $content): void {
                // Convert all to UTF8
-               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('XML-PARSER: content()=%d - CALLED!', strlen($content)));
+               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage(sprintf('XML-PARSER: content()=%d - CALLED!', strlen($content)));
                if (empty($content)) {
                        // No empty content
                        throw new InvalidArgumentException('content is empty', FrameworkInterface::EXCEPTION_INVALID_ARGUMENT);