[prev in list] [next in list] [prev in thread] [next in thread] 

List:       log4net-dev
Subject:    Re: Debugging log4net source
From:       Omer Mor <omer.mor () gmail ! com>
Date:       2009-11-09 16:38:17
Message-ID: 168f675e0911090838i7eb5bcc0o8181d2d4d9a2b163 () mail ! gmail ! com
[Download RAW message or body]

I can happily confirm that this version is working great:
It is both debuggable, and compatible with existing assemblies that
reference it.
Ron - thank you very very much!

Omer.

On Mon, Nov 9, 2009 at 1:09 AM, Ron Grabowski <rongrabowski@yahoo.com>wrote:

> I've contacted Omer off list to have him verify the .pdb file. If its
> correct I'll publish it somewhere.
>
> ------------------------------
> *From:* Omer Mor <omer.mor@gmail.com>
> *To:* Log4NET Dev <log4net-dev@logging.apache.org>
> *Sent:* Mon, October 19, 2009 1:09:24 AM
>
> *Subject:* Re: Debugging log4net source
>
> Thanks!
>
> On Mon, Oct 19, 2009 at 5:04 AM, Ron Grabowski <rongrabowski@yahoo.com>wrote:
>
>> I emailed Nicko asking him what I need to do to get the .snk file onto my
>> system. It looks like the version in source control is encrypted.
>>
>> ------------------------------
>> *From:* Omer Mor <omer.mor@gmail.com>
>> *To:* Log4NET Dev <log4net-dev@logging.apache.org>
>> *Sent:* Wed, October 7, 2009 9:01:18 AM
>>
>> *Subject:* Re: Debugging log4net source
>>
>> I'm trying again to get some help from the log4net developers community:
>> I really need to get a release build with pdb.
>> I explained blow exactly what needs to be changed in the nant script to
>> build it this way.
>> It should only take a couple of minutes to do this.
>> I would have done it myself if the assembly signing key would have been
>> public.
>> Maybe if no one is free to compile it, then I could join the log4net dev
>> team, and get permission to access the signing key?
>>
>> Thanks in advance,
>>   Omer Mor.
>>
>> On Wed, Aug 26, 2009 at 5:01 PM, Omer Mor <omer.mor@gmail.com> wrote:
>>
>>> Thanks.
>>> First - you should change the nant script:
>>> In the file <root>\log4net.include line 171 should be changed from:
>>>         <property name="build.debug" value="false" />
>>> to:
>>>         <property name="build.debug" value="pdbonly" />
>>> then just run the build script (build.cmd) and the release folder (
>>> <root>\bin\net\2.0\release\) should contain both the dll and pdb files.
>>>
>>> I suggest making the change in the nant script permanent as it does not
>>> affect performance and allows for debugging into log4net source.
>>>
>>> Thanks in advance,
>>>   Omer Mor.
>>>
>>> On Wed, Aug 26, 2009 at 5:41 AM, Ron Grabowski <rongrabowski@yahoo.com>wrote:
>>>
>>>> Tell me the exact nant command line to run and I'll run it.
>>>>
>>>> ------------------------------
>>>> *From:* Omer Mor <omer.mor@gmail.com>
>>>> *To:* Log4NET Dev <log4net-dev@logging.apache.org>
>>>> *Sent:* Sunday, August 23, 2009 11:49:03 AM
>>>> *Subject:* Re: Debugging log4net source
>>>>
>>>> I would like to ask again the developer community of log4net for a
>>>> signed build of 1.2.10 assembly that was compiled with a PDB file.
>>>> This is the best way for us to enable live debugging of the log4net
>>>> source.
>>>> I believe it would only take a couple of minutes to compile it this way,
>>>> and it would help us tremendously.
>>>>
>>>> Thanks again,
>>>>   Omer Mor (omer.mor@gmail.com)
>>>>
>>>> On Fri, Aug 7, 2009 at 12:44 PM, Omer Mor <omer.mor@gmail.com> wrote:
>>>>
>>>>> I prefer debugging the situation live.
>>>>> Is it so hard to re-compile 1.2.10 with pdb? It's just a matter of a
>>>>> slight tweak in the project settings.
>>>>>
>>>>>
>>>>> On Fri, Aug 7, 2009 at 6:12 AM, Ron Grabowski <rongrabowski@yahoo.com>wrote:
>>>>>
>>>>>> Have you tried specifying a custom error handler on the appender to
>>>>>> track down when it enters a failed state?
>>>>>>
>>>>>> <appender name=".." >
>>>>>>   ...
>>>>>>   <errorHandler type="Your.ErrorHandler, YourAssembly" />
>>>>>> </appender>
>>>>>>
>>>>>> You would write one that sends an email when the file can't be
>>>>>> created.
>>>>>>
>>>>>> ------------------------------
>>>>>> *From:* Omer Mor <omer.mor@gmail.com>
>>>>>> *To:* log4net-dev@logging.apache.org
>>>>>> *Sent:* Thursday, August 6, 2009 3:02:17 AM
>>>>>> *Subject:* Debugging log4net source
>>>>>>
>>>>>> Hi,
>>>>>> to research a (rare) bug we have with log4net (log file is not being
>>>>>> created) we wanted to debug its source.
>>>>>> However, the release build of 1.2.10 is supplied without a pdb file.
>>>>>> And since it is a signed assembly we can't compile it ourself and
>>>>>> replace it.
>>>>>> Also - the debug build of 1.2.10 is supplied with a pdb, but is not
>>>>>> signed, so it is not substitutable.
>>>>>> What I'd like to ask is that one of the developers compile a release
>>>>>> build of 1.2.10 and enable pdb creation, so that we could debug the source.
>>>>>>
>>>>>> Using a non-signed copy of log4net is not an option for us, because
>>>>>> some of our 3rd-party assemblies are compiled against the signed 1.2.10
>>>>>> log4net assembly.
>>>>>>
>>>>>> The files could be sent irectly to me at omer.mor@gmail.com .
>>>>>>
>>>>>> Thanks in advance,
>>>>>>   Omer Mor.
>>>>>>
>>>>>
>>>>>
>>>>
>>>
>>
>

[Attachment #3 (text/html)]

<div dir="ltr">I can happily confirm that this version is working great:<div>It is \
both debuggable, and compatible with existing assemblies that reference \
it.</div><div>Ron - thank you very very much!</div><div><br></div><div>

Omer.<br><br><div class="gmail_quote">On Mon, Nov 9, 2009 at 1:09 AM, Ron Grabowski \
<span dir="ltr">&lt;<a \
href="mailto:rongrabowski@yahoo.com">rongrabowski@yahoo.com</a>&gt;</span> \
wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex;">

<div><div style="font-family:times new roman,new \
york,times,serif;font-size:12pt"><div>I&#39;ve contacted Omer off list to have him \
verify the .pdb file. If its correct I&#39;ll publish it somewhere.<br></div><div \
style="font-family:times new roman,new york,times,serif;font-size:12pt">

<br><div style="font-family:times new roman,new \
york,times,serif;font-size:12pt"><font face="Tahoma" size="2"><div class="im"><hr \
size="1"><b><span style="font-weight:bold">From:</span></b> Omer Mor &lt;<a \
href="mailto:omer.mor@gmail.com" target="_blank">omer.mor@gmail.com</a>&gt;<br>

<b><span style="font-weight:bold">To:</span></b> Log4NET Dev &lt;<a \
href="mailto:log4net-dev@logging.apache.org" \
target="_blank">log4net-dev@logging.apache.org</a>&gt;<br></div><b><span \
style="font-weight:bold">Sent:</span></b> Mon, October 19, 2009 1:09:24 AM<div>

<div></div><div class="h5"><br><b><span style="font-weight:bold">Subject:</span></b> \
Re: Debugging log4net source<br></div></div></font><div><div></div><div \
class="h5"><br><div dir="ltr">Thanks!<div><br><div class="gmail_quote">

On Mon, Oct 19, 2009 at 5:04 AM, Ron Grabowski <span dir="ltr">&lt;<a rel="nofollow" \
href="mailto:rongrabowski@yahoo.com" \
target="_blank">rongrabowski@yahoo.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt \
0pt 0.8ex;padding-left:1ex">



<div><div style="font-family:times new roman,new \
york,times,serif;font-size:12pt"><div>I emailed Nicko asking him what I need to do to \
get the .snk file onto my system. It looks like the version in source control is \
encrypted.<br>



</div><div style="font-family:times new roman,new \
york,times,serif;font-size:12pt"><br><div style="font-family:times new roman,new \
york,times,serif;font-size:12pt"><font face="Tahoma" size="2"><div><hr size="1">

<b><span style="font-weight:bold">From:</span></b> Omer Mor &lt;<a rel="nofollow" \
href="mailto:omer.mor@gmail.com" \
target="_blank">omer.mor@gmail.com</a>&gt;<br><b><span \
style="font-weight:bold">To:</span></b> Log4NET Dev &lt;<a rel="nofollow" \
href="mailto:log4net-dev@logging.apache.org" \
target="_blank">log4net-dev@logging.apache.org</a>&gt;<br>



</div><b><span style="font-weight:bold">Sent:</span></b> Wed, October 7, 2009 9:01:18 \
AM<div><div></div><div><br><b><span style="font-weight:bold">Subject:</span></b> Re: \
Debugging log4net source<br></div></div>

</font><div><div></div><div><br><div dir="ltr">I&#39;m trying again to get some help \
from the log4net developers community:<div>I  really  need to get a release build \
with pdb.</div><div>I explained blow exactly what needs to be changed in the nant \
script to build it this way.</div>





<div>It should only take a couple of minutes to do this.</div><div>I would have done \
it myself if the assembly signing key would have been public.<br>Maybe if no one is \
free to compile it, then I could join the log4net dev team, and get permission to \
access the signing key?</div>





<div><br></div><div>Thanks in advance,</div><div>    Omer Mor.</div><div><br><div \
class="gmail_quote">On Wed, Aug 26, 2009 at 5:01 PM, Omer Mor <span dir="ltr">&lt;<a \
rel="nofollow" href="mailto:omer.mor@gmail.com" \
target="_blank">omer.mor@gmail.com</a>&gt;</span> wrote:<br>





<blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, \
204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex"><div dir="ltr">Thanks.<div>First - \
you should change the nant script:</div><div>In the file <font face="&#39;courier \
new&#39;, monospace">&lt;root&gt;\log4net.include</font> line <font \
face="&#39;courier new&#39;, monospace">171 </font>should be changed from:</div>






<div><font face="&#39;courier new&#39;, monospace">             &lt;property \
name=&quot;build.debug&quot; value=&quot;<span style="background-color:rgb(255, 204, \
204)">false</span>&quot; /&gt;</font></div> <div>to:</div><div><font \
face="&#39;courier new&#39;, monospace">             &lt;property \
name=&quot;build.debug&quot; value=&quot;<span style="background-color:rgb(255, 255, \
204)">pdbonly</span>&quot; /&gt;</font><br> then just run the build script \
(build.cmd) and the release folder (<span>&lt;root&gt;\bin\net\2.0\release\<span \
style="font-family:arial">) should contain both the dll and pdb \
files.</span></span></div>


<div><br></div><div>I suggest making the change in the nant script permanent as it \
does not affect performance and allows for debugging into log4net \
source.</div><div><div><br></div><div>Thanks in advance,</div>

<div>    Omer Mor.</div>
<div><br></div></div><div><div></div><div><div><div class="gmail_quote">On Wed, Aug \
26, 2009 at 5:41 AM, Ron Grabowski <span dir="ltr">&lt;<a rel="nofollow" \
href="mailto:rongrabowski@yahoo.com" \
target="_blank">rongrabowski@yahoo.com</a>&gt;</span> wrote:<br>





<blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, \
204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex"> <div><div style="font-family:times \
new roman,new york,times,serif;font-size:12pt"><div>Tell me the exact nant command \
line to run and I&#39;ll run it.<br></div><div style="font-family:times new roman,new \
york,times,serif;font-size:12pt">






<br><div style="font-family:times new roman,new \
york,times,serif;font-size:12pt"><font face="Tahoma" size="2"><div><hr \
size="1"><b><span style="font-weight:bold">From:</span></b> Omer Mor &lt;<a \
rel="nofollow" href="mailto:omer.mor@gmail.com" \
target="_blank">omer.mor@gmail.com</a>&gt;<br>






</div><b><span style="font-weight:bold">To:</span></b> Log4NET Dev &lt;<a \
rel="nofollow" href="mailto:log4net-dev@logging.apache.org" \
target="_blank">log4net-dev@logging.apache.org</a>&gt;<br><b><span \
style="font-weight:bold">Sent:</span></b> Sunday, August 23, 2009 11:49:03 AM<br>






<b><span style="font-weight:bold">Subject:</span></b> Re: Debugging log4net \
source<br></font><div><div></div><div><br><div dir="ltr">I would like to ask again \
the developer community of log4net for a  signed build of 1.2.10 assembly that was \
compiled with a PDB file.<div>This is the best way for us to enable live debugging of \
the log4net source.</div>

<div>I believe it would only take a couple of minutes to compile it this way, and it \
would help us  tremendously.</div><div><br></div><div>Thanks again,</div><div>    \
Omer Mor (<a rel="nofollow" href="mailto:omer.mor@gmail.com" \
target="_blank">omer.mor@gmail.com</a>)<br>








<br><div class="gmail_quote">On Fri, Aug 7, 2009 at 12:44 PM, Omer Mor <span \
dir="ltr">&lt;<a rel="nofollow" href="mailto:omer.mor@gmail.com" \
target="_blank">omer.mor@gmail.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt \
0pt 0.8ex;padding-left:1ex">








<div dir="ltr">I prefer debugging the situation live.<div>Is it so hard to re-compile \
1.2.10 with pdb? It&#39;s just a matter of a slight tweak in the project \
settings.<div><div></div><div><br><br><div class="gmail_quote">








On Fri, Aug 7, 2009 at 6:12 AM, Ron Grabowski <span dir="ltr">&lt;<a rel="nofollow" \
href="mailto:rongrabowski@yahoo.com" \
target="_blank">rongrabowski@yahoo.com</a>&gt;</span> wrote:<br> <blockquote \
class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt \
0pt 0.8ex;padding-left:1ex"><div><div style="font-family:times new roman,new \
york,times,serif;font-size:12pt"><div style="font-family:times new roman,new \
york,times,serif;font-size:12pt">









Have you tried specifying a custom error handler on the appender to track down when \
it enters a failed state?<br><br>&lt;appender name=&quot;..&quot; &gt;<br>   ...<br>  \
&lt;errorHandler type=&quot;Your.ErrorHandler, YourAssembly&quot; /&gt;<br>









&lt;/appender&gt;<br><br>You would write one that sends an email when the file \
can&#39;t be created.<br><font size="2"></font><br><div style="font-family:times new \
roman,new york,times,serif;font-size:12pt"><font face="Tahoma" size="2"><hr size="1">









<div><b><span style="font-weight:bold">From:</span></b> Omer Mor &lt;<a \
rel="nofollow" href="mailto:omer.mor@gmail.com" \
target="_blank">omer.mor@gmail.com</a>&gt;<br><b><span \
style="font-weight:bold">To:</span></b> <a rel="nofollow" \
href="mailto:log4net-dev@logging.apache.org" \
target="_blank">log4net-dev@logging.apache.org</a><br>









</div><b><span style="font-weight:bold">Sent:</span></b> Thursday,
 August 6, 2009 3:02:17 AM<br><b><span style="font-weight:bold">Subject:</span></b> \
Debugging log4net source<br></font><div><div></div><div><br><div dir="ltr">Hi,<br>to \
research a (rare) bug we have with log4net (log file is not being created) we wanted \
to debug its source.<br>









However, the release build of 1.2.10 is supplied without a pdb file.<br>And since it \
is a signed assembly we can&#39;t compile it ourself and replace it.<br> Also - the \
debug build of 1.2.10 is supplied with a pdb, but is not signed, so it is not \
substitutable.<br>What I&#39;d like to ask is that one of the developers compile a \
release build of 1.2.10 and enable pdb creation, so that we could debug the \
source.<br>










  <br>Using a non-signed copy of log4net is not an option for us, because some of our \
3rd-party assemblies are compiled against the signed 1.2.10 log4net assembly.<br>  \
<br>The files could be sent irectly to me at <a rel="nofollow" \
href="mailto:omer.mor@gmail.com" target="_blank">omer.mor@gmail.com</a> .<br>










  <br>Thanks in advance,<br>   Omer Mor.</div>
</div></div></div></div></div></div></blockquote></div><br></div></div></div></div>
</blockquote></div><br></div></div>
</div></div></div></div></div></div></blockquote></div><br></div></div></div></div>
</blockquote></div><br></div></div>
</div></div></div></div></div></div></blockquote></div><br></div></div>
</div></div></div></div>

</div></div></blockquote></div><br></div></div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic