Seldaek/monolog · error · LogicException
Unsupported operation
Error message
Unsupported operation
What it means
Error "Unsupported operation" thrown in Seldaek/monolog.
Source
Thrown at src/Monolog/LogRecord.php:74
return;
}
throw new \LogicException('Unsupported operation: setting '.$offset);
}
public function offsetExists(mixed $offset): bool
{
if ($offset === 'level_name') {
return true;
}
return isset($this->{$offset});
}
public function offsetUnset(mixed $offset): void
{
throw new \LogicException('Unsupported operation');
}
public function &offsetGet(mixed $offset): mixed
{
// handle special cases for the level enum
if ($offset === 'level_name') {
// avoid returning readonly props by ref as this is illegal
$copy = $this->level->getName();
return $copy;
}
if ($offset === 'level') {
// avoid returning readonly props by ref as this is illegal
$copy = $this->level->value;
return $copy;
}
View on GitHub (pinned to 57eb102834)
When it happens
Trigger: Thrown at src/Monolog/LogRecord.php:74 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/5216f466798f87b6.
Report an issue: GitHub.