if (isset($backtrace[4]) && $backtrace[3]['function'] == 'partialStub') {
// Prepend class::function:line from 2nd element
//* NOISY-DEBUG: */ printf('[%s:%d]: partialStub() was invoked ...' . PHP_EOL, __METHOD__, __LINE__);
- $message = sprintf('[%s::%s:%d]: [%s] %s',
+ $message = sprintf('[%s] [%s::%s:%d]: %s',
+ $logLevel,
$backtrace[4]['class'],
$backtrace[4]['function'],
(isset($backtrace[4]['line']) ? $backtrace[4]['line'] : '0'),
- $logLevel,
$message
);
} elseif (isset($backtrace[3]) && $backtrace[2]['function'] == 'debugOutput') {
// Prepend class::function:line from 2nd element
//* NOISY-DEBUG: */ printf('[%s:%d]: debugOutput() was invoked ...' . PHP_EOL, __METHOD__, __LINE__);
- $message = sprintf('[%s::%s:%d]: [%s] %s',
+ $message = sprintf('[%s] [%s::%s:%d]: %s',
+ $logLevel,
$backtrace[3]['class'],
$backtrace[3]['function'],
(isset($backtrace[3]['line']) ? $backtrace[3]['line'] : '0'),
- $logLevel,
$message
);
} else {
// Prepend class::function:line from 2nd element
//* NOISY-DEBUG: */ printf('[%s:%d]: Ordinary invocation ...' . PHP_EOL, __METHOD__, __LINE__);
- $message = sprintf('[%s::%s:%d]: [%s] %s',
+ $message = sprintf('[%s] [%s::%s:%d]: %s',
+ $logLevel,
$backtrace[2]['class'],
$backtrace[2]['function'],
(isset($backtrace[2]['line']) ? $backtrace[2]['line'] : '0'),
- $logLevel,
$message
);
}