src/Illuminate/Log/LogManager.php
LogManager
has 45 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class LogManager implements LoggerInterface
{
use ParsesLogConfiguration;
/**
File LogManager.php
has 380 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
namespace Illuminate\Log;
use Closure;
Method createMonologDriver
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function createMonologDriver(array $config)
{
if (! is_a($config['handler'], HandlerInterface::class, true)) {
throw new InvalidArgumentException(
$config['handler'].' must be an instance of '.HandlerInterface::class
Method get
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function get($name, ?array $config = null)
{
try {
return $this->channels[$name] ?? with($this->resolve($name, $config), function ($logger) use ($name) {
$loggerWithContext = $this->tap(