Code Coverage by Clover.NET

to print line no from where exception has been raised

View: New views
2 Messages — Rating Filter:   Alert me  

to print line no from where exception has been raised

by forshiv :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Please tell me how can I print line no from where the exception has occured in the file

Re: to print line no from where exception has been raised

by jmeckley :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

this is the most complete list I have found

from code LogManager.GetLogger("").ErrorException(e.message, e);

<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <targets>
        <target name="con" xsi:type="Console" error="true" layout="${exception:format=tostring}${newline}${stacktrace}" />
    </targets>
    <rules>
        <logger name="*" minlevel="Debug" writeTo="con" />
    </rules>
</nlog>