Seldaek/monolog · error · BadMethodCallException
Batch formatting does not make sense for the WildfireFormatt
Error message
Batch formatting does not make sense for the WildfireFormatter
What it means
Error "Batch formatting does not make sense for the WildfireFormatter" thrown in Seldaek/monolog.
Source
Thrown at src/Monolog/Formatter/WildfireFormatter.php:121
$message,
], $handleError);
// The message itself is a serialization of the above JSON object + it's length
return sprintf(
'%d|%s|',
\strlen($json),
$json
);
}
/**
* @inheritDoc
*
* @phpstan-return never
*/
public function formatBatch(array $records)
{
throw new \BadMethodCallException('Batch formatting does not make sense for the WildfireFormatter');
}
/**
* @inheritDoc
*
* @return null|scalar|array<mixed[]|scalar|null>|object
*/
protected function normalize(mixed $data, int $depth = 0): mixed
{
if (\is_object($data) && !$data instanceof \DateTimeInterface) {
return $data;
}
return parent::normalize($data, $depth);
}
}
View on GitHub (pinned to 57eb102834)
When it happens
Trigger: Thrown at src/Monolog/Formatter/WildfireFormatter.php:121 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of Seldaek/monolog@57eb102834 (2026-08-17).
Data as JSON: /api/errors/52cf2083c85dd019.
Report an issue: GitHub.