You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The values for {file} and {line} should be for the location where the call to log something occurred.
Instead, the file sometimes evaluates to the Logger class name or the class file.
The line number is usually, but not always, correct.
CodeIgniter 4 version
v 4.0.2
Given this controller
<?php namespace App\Controllers;
class Home extends BaseController
{
public function index()
{
$this->logger->critical("FILE: {file} LINE:{line}"); // line 7
}
}
Describe the bug
The values for {file} and {line} should be for the location where the call to log something occurred.
Instead, the file sometimes evaluates to the Logger class name or the class file.
The line number is usually, but not always, correct.
CodeIgniter 4 version
v 4.0.2
Given this controller
The log entry produced is
But it should be
The text was updated successfully, but these errors were encountered: