[
https://issues.apache.org/jira/browse/LOG4PHP-109?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12853187#action_12853187
]
Vladimir Gorej edited comment on LOG4PHP-109 at 4/4/10 7:50 AM:
----------------------------------------------------------------
Patch for throwable information. With this patch, it is possible to log
exceptions with user messages in fashion:
try {
// some actions
} catch (Exception $ex) {
Logger::getLogger('test')->warn('Error while something...', $ex);
}
Exception is assigned to the logger as caller object. Logger recozgnizes caller
object as exception and passes it forward to the LoggerLoggingEvent.
LoggerLoggingEvent::getThrowableInformation() now returns instance of
LoggerThrowableInformation. Support for nested exception chains that php 5.3
now supports is also implemented. I also added renderer for nested exception
chains. Patch also contains complete unitest with full coverage for new patch
functionality.
was (Author: char0n):
patch for throwable info
> patch for Throwable information associated with logging event
> -------------------------------------------------------------
>
> Key: LOG4PHP-109
> URL: https://issues.apache.org/jira/browse/LOG4PHP-109
> Project: Log4php
> Issue Type: New Feature
> Components: Code, Documentation, Tests
> Affects Versions: 2.2, 2.3
> Environment: PHP
> Reporter: Vladimir Gorej
> Attachments: throwableInfo.patch
>
>
> I have created patch for throwable information associated with logging event.
> With this patch applied it will be possible to log exceptions and nested
> exceptions with their full stack traces
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.