elseif ($log[0
] instanceof LoggerInterface
) { $this->loggedErrors |=
$type;
} else { throw new \
InvalidArgumentException('Invalid logger provided.'
);
} $this->loggers
[$type] =
$log +
$prev[$type];
if ($this->bootstrappingLogger &&
$prev[$type][0
] ===
$this->bootstrappingLogger
) { $flush[$type] =
$type;
} } $this->
reRegister($prevLogged |
$this->thrownErrors
);
if ($flush) { foreach ($this->bootstrappingLogger->
cleanLogs() as $log) { $type = ThrowableUtils::
getSeverity($log[2
]['exception'
]);
if (!
isset($flush[$type])) { $this->bootstrappingLogger->
log($log[0
],
$log[1
],
$log[2
]);
} elseif ($this->loggers
[$type][0
]) { $this->loggers
[$type][0
]->
log($this->loggers
[$type][1
],
$log[1
],
$log[2
]);
} } }