Loading...

log4net-dev@logging.apache.org

[Prev] Thread [Next]  |  [Prev] Date [Next]

[jira] [Commented] (LOG4NET-320) Location Information Adam Davies (Commented) (JIRA) Wed Feb 01 07:00:36 2012

    [ 
https://issues.apache.org/jira/browse/LOG4NET-320?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13176757#comment-13176757
 ] 

Adam Davies commented on LOG4NET-320:
-------------------------------------

Example of usage:

<appender name="ChainsawUdpAppender" type="log4net.Appender.UdpAppender">
    <localPort value="7820" />
    <remoteAddress value="127.0.0.1" />
    <remotePort value="7520" />
    <layout type="log4net.Layout.XmlLayout">
      <locationInfo value="true" />
      <LocationOffset value="1" />
    </layout>
  </appender>


A LocationOffset of 1 will skip the first stack, and report the location 
begining at the second stack.
                
> Location Information
> --------------------
>
>                 Key: LOG4NET-320
>                 URL: https://issues.apache.org/jira/browse/LOG4NET-320
>             Project: Log4net
>          Issue Type: New Feature
>          Components: Core
>    Affects Versions: 1.2.11
>            Reporter: Adam Davies
>            Priority: Minor
>              Labels: location, locationoffset, patch, stacktrace
>             Fix For: 1.2 Maintenance Release
>
>         Attachments: LocationOffset.patch
>
>
> Add the ability to offset the stacktrace information.  On occasion there is a 
> need to skip the first n stack locations.  For example, if using a generic 
> method to log exceptions and then rethrow them; the generic method is 
> irrelevant information in the stack.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira