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

List:       log4net-user
Subject:    RE: Database logging problems
From:       "Marc McGinley" <marc () dreamspace ! net>
Date:       2008-09-02 10:10:13
Message-ID: 98FCE4BCEA3FE44E95B3088A47AD82F001CE906A () mapibe13 ! exchange ! xchg
[Download RAW message or body]

Brilliant, Thanks!

 

________________________________

From: Pascal ROZE [mailto:pascal.roze@gmail.com] 
Sent: 02 September 2008 10:52
To: Log4NET User
Subject: Re: Database logging problems

 

Hi

Try with <bufferSize value="0" /> in your appender definition.

Pascal

2008/9/2 Marc McGinley <marc@dreamspace.net>

Hi,

 

I've been playing with log4net and writing to file seems to work okay
=20 but when I try logging to a database nothing happens...

 

To explain a little more... I'm running a trace on the database and I
=20 can see that it's trying to commit a transaction but it's not =20
resulting in any writes. I was playing with this for hours yesterday,
=20 turned on the machine this morning and there were some rows in the
=20 database. I've played around this morning (should have submitted at
=20 least 30 logs from the same page (that worked last night)) and only
=20 one of them has come through.

 

Is there some sort of buffer? The writing to db seems to be a little =20
erratic (I've no way to predict how often it writes) is there anything
=20 I can do to sort this out?

 

Cheers!

 

 


[Attachment #3 (text/html)]

<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:blue;
	text-decoration:underline;}
p
	{mso-margin-top-alt:auto;
	margin-right:0cm;
	mso-margin-bottom-alt:auto;
	margin-left:0cm;
	font-size:12.0pt;
	font-family:"Times New Roman";}
span.EmailStyle18
	{mso-style-type:personal-reply;
	font-family:Arial;
	color:navy;}
@page Section1
	{size:612.0pt 792.0pt;
	margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
	{page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=blue>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Brilliant, Thanks!<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> Pascal ROZE
[mailto:pascal.roze@gmail.com] <br>
<b><span style='font-weight:bold'>Sent:</span></b> 02 September 2008 10:52<br>
<b><span style='font-weight:bold'>To:</span></b> Log4NET User<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: Database logging
problems</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<div>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>Hi<br>
<br>
Try with &lt;bufferSize value=&quot;0&quot; /&gt; in your appender definition.<br>
<br>
Pascal<o:p></o:p></span></font></p>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>2008/9/2 Marc McGinley &lt;<a \
href="mailto:marc@dreamspace.net">marc@dreamspace.net</a>&gt;<o:p></o:p></span></font></p>


<div link=blue vlink=purple>

<div>

<p><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New"'>Hi,</span></font><o:p></o:p></p>

<p><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New"'>&nbsp;</span></font><o:p></o:p></p>

<p><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New"'>I've been playing with log4net and writing to file seems to work
okay =20 but when I try logging to a database nothing \
happens...</span></font><o:p></o:p></p>

<p><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New"'>&nbsp;</span></font><o:p></o:p></p>

<p><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New"'>To explain a little more... I'm running a trace on the database
and I =20 can see that it's trying to commit a transaction but it's not =20
resulting in any writes. I was playing with this for hours yesterday, =20
turned on the machine this morning and there were some rows in the =20
database. I've played around this morning (should have submitted at =20 least
30 logs from the same page (that worked last night)) and only =20 one of them
has come through.</span></font><o:p></o:p></p>

<p><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New"'>&nbsp;</span></font><o:p></o:p></p>

<p><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New"'>Is there some sort of buffer? The writing to db seems to be a
little =20 erratic (I've no way to predict how often it writes) is there
anything =20 I can do to sort this out?</span></font><o:p></o:p></p>

<p><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New"'>&nbsp;</span></font><o:p></o:p></p>

<p><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New"'>Cheers!</span></font><o:p></o:p></p>

<p><font size=2 face=Arial><span \
style='font-size:10.0pt;font-family:Arial'>&nbsp;</span></font><o:p></o:p></p>

</div>

</div>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

</div>

</body>

</html>



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

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