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
It will be better to support a PSR class name in $config['database']['logger']['default']
if ($driverinstanceof NamedInterface && isset($this->config['drivers'][$driver->getName()])) {
$channel = $this->config['drivers'][$driver->getName()];
} elseif (isset($this->config['drivers'][$driver::class])) {
$channel = $this->config['drivers'][$driver::class];
} elseif (isset($this->config['default']) && $this->config['default'] !== null) {
$channel = $this->config['default'];
}
// Here is an example of how to do itif (\is_subclass_of($channel, LoggerInterface::class)) {
return$this->container->get($channel);
}
return$this->container->get(LogsInterface::class)->getLogger($channel);
The text was updated successfully, but these errors were encountered:
It will be better to support a PSR class name in
$config['database']['logger']['default']
The text was updated successfully, but these errors were encountered: