When we run tasks we output via
Civi::log()->errror() etc
The default output is https://github.com/Seldaek/monolog/blob/main/src/Monolog/Formatter/LineFormatter.php#L28 - ie including $context and $extra but we excluded those deliberately with .. a todo...
https://github.com/eileenmcnaughton/monolog/commit/96a1e2fb00f8c1a50e288791a3de52eb926d0493
However, we have had some frustration with lack of detail with our queue errors - specifically the fact that we are not outputting the exceptions we hit - which the standard formatter would as they are part of the $context array.
Perhaps if we did the todo thing it would help us find the balance?
Related
https://github.com/civicrm/civicrm-core/pull/28034
https://wikitech.wikimedia.org/wiki/Fundraising/Internal-facing/CiviCRM#CiviCRM_queue_processing
https://github.com/Seldaek/monolog
https://github.com/eileenmcnaughton/monolog