Hi everyone. About logging exceptions, PSR-3 says:
If an Exception object is passed in the context data, it MUST be in the > 'exception' key. Logging exceptions is a common pattern and this allows > implementors to extract a stack trace from the exception when the log > backend supports it. Implementors MUST still verify that the 'exception' > key is actually an Exception before using it as such, as it MAY contain > anything. (https://www.php-fig.org/psr/psr-3/#13-context) When this was published, PHP 7 wasn't released and Throwable interface didn't exist. I have several questions about this. Should Throwable be taken into account? If so, should we update PSR-3 or is it better to write a new PSR (like with PSR-12 for PSR-2)? Do we want to keep using 'exception' as key? Should we use 'error'? 'throwable'? All of them? Thanks. -- You received this message because you are subscribed to the Google Groups "PHP Framework Interoperability Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to php-fig+unsubscr...@googlegroups.com. To post to this group, send email to php-fig@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/68592a05-8b49-4946-a72a-563123fa2923%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.