Fix logging line and call method information

The logging line number and file was for the previous call position, not for
where the actual log entry was called

Also fix for ErrorMessage class calls with shifting the start position up depending on which method is called.

Output shows file and line where the message/log call was done and the function/class method where the log call was done
This commit is contained in:
Clemens Schwaighofer
2025-11-27 17:54:28 +09:00
parent 8af71b70a3
commit e473e7899d
8 changed files with 149 additions and 34 deletions

View File

@@ -121,6 +121,12 @@ Class TestP
public function test(): void
{
$this->log->info('TestL::test call');
$this->subCall();
}
public function subCall(): void
{
$this->log->info('TestL::sub_call call');
}
}