From: Roland Häder Date: Thu, 2 Mar 2023 03:02:57 +0000 (+0100) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=cf612b52d465466e1cc65c889d28ac775ae05493;p=core.git Continued: - renamed output() to outputMessage() --- diff --git a/framework/main/middleware/debug/class_DebugMiddleware.php b/framework/main/middleware/debug/class_DebugMiddleware.php index dae80dbb..eda4d5f9 100644 --- a/framework/main/middleware/debug/class_DebugMiddleware.php +++ b/framework/main/middleware/debug/class_DebugMiddleware.php @@ -122,7 +122,7 @@ class DebugMiddleware extends BaseMiddleware implements Registerable { * @return void * @throws NullPointerException If this->outputInstance is NULL */ - private function output (string $message, bool $stripTags = false) { + private function outputMessage (string $message, bool $stripTags = false) { // Get backtrace //* NOISY-DEBUG: */ printf('[%s:%d]: message=%s,stripTags=%d - CALLED!' . PHP_EOL, __METHOD__, __LINE__, $message, intval($stripTags)); $backtrace = debug_backtrace(!DEBUG_BACKTRACE_PROVIDE_OBJECT); @@ -198,8 +198,8 @@ class DebugMiddleware extends BaseMiddleware implements Registerable { } // Use debug output handler - //* NOISY-DEBUG: */ printf('[%s:%d]: Invoking this->output(%s,%d) ...' . PHP_EOL, __METHOD__, __LINE__, $message, intval($stripTags)); - $this->output(sprintf('TRACE: %s', $message), $stripTags); + //* NOISY-DEBUG: */ printf('[%s:%d]: Invoking this->outputMessage(%s,%d) ...' . PHP_EOL, __METHOD__, __LINE__, $message, intval($stripTags)); + $this->outputMessage(sprintf('TRACE: %s', $message), $stripTags); // Trace message //* NOISY-DEBUG: */ printf('[%s:%d]: EXIT!' . PHP_EOL, __METHOD__, __LINE__); @@ -230,8 +230,8 @@ class DebugMiddleware extends BaseMiddleware implements Registerable { } // Use debug output handler - //* NOISY-DEBUG: */ printf('[%s:%d]: Invoking this->output(%s,%d) ...' . PHP_EOL, __METHOD__, __LINE__, $message, intval($stripTags)); - $this->output(sprintf('DEBUG: %s', $message), $stripTags); + //* NOISY-DEBUG: */ printf('[%s:%d]: Invoking this->outputMessage(%s,%d) ...' . PHP_EOL, __METHOD__, __LINE__, $message, intval($stripTags)); + $this->outputMessage(sprintf('DEBUG: %s', $message), $stripTags); // Trace message //* NOISY-DEBUG: */ printf('[%s:%d]: EXIT!' . PHP_EOL, __METHOD__, __LINE__); @@ -262,8 +262,8 @@ class DebugMiddleware extends BaseMiddleware implements Registerable { } // Use debug output handler - //* NOISY-DEBUG: */ printf('[%s:%d]: Invoking this->output(%s,%d) ...' . PHP_EOL, __METHOD__, __LINE__, $message, intval($stripTags)); - $this->output(sprintf('INFO: %s', $message), $stripTags); + //* NOISY-DEBUG: */ printf('[%s:%d]: Invoking this->outputMessage(%s,%d) ...' . PHP_EOL, __METHOD__, __LINE__, $message, intval($stripTags)); + $this->outputMessage(sprintf('INFO: %s', $message), $stripTags); // Trace message //* NOISY-DEBUG: */ printf('[%s:%d]: EXIT!' . PHP_EOL, __METHOD__, __LINE__); @@ -294,8 +294,8 @@ class DebugMiddleware extends BaseMiddleware implements Registerable { } // Use debug output handler - //* NOISY-DEBUG: */ printf('[%s:%d]: Invoking this->output(%s,%d) ...' . PHP_EOL, __METHOD__, __LINE__, $message, intval($stripTags)); - $this->output(sprintf('WARNING: %s', $message), $stripTags); + //* NOISY-DEBUG: */ printf('[%s:%d]: Invoking this->outputMessage(%s,%d) ...' . PHP_EOL, __METHOD__, __LINE__, $message, intval($stripTags)); + $this->outputMessage(sprintf('WARNING: %s', $message), $stripTags); // Trace message //* NOISY-DEBUG: */ printf('[%s:%d]: EXIT!' . PHP_EOL, __METHOD__, __LINE__); @@ -319,7 +319,7 @@ class DebugMiddleware extends BaseMiddleware implements Registerable { } // Output stub message - $this->output($stubMessage); + $this->outputMessage($stubMessage); // Trace message //* NOISY-DEBUG: */ printf('[%s:%d]: EXIT!' . PHP_EOL, __METHOD__, __LINE__);