logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kim Therkelsen <...@lyngsoesystems.com>
Subject RE: Error in SqlCeParameter causes error in log4net
Date Mon, 27 Aug 2007 06:51:26 GMT
Hi!

It seems to work when I leave out the size parameter (I thought I had
already tried that :-) ). 

Still it would be nice if log4net took care of truncating the lenght of the
message if it exceeds the 4000 character limit I have set. As it is now an
error message is shown in the console and the message is not logged. 

Thank you for you help!

Best regards,
Kim Therkelsen


-----Original Message-----
From: Ron Grabowski [mailto:rongrabowski@yahoo.com] 
Sent: 25. august 2007 19:44
To: Log4NET User
Subject: Re: Error in SqlCeParameter causes error in log4net

If setting the size is causing an issue, what happens when you don't set the
size?


<parameter>
 <parameterName value="@message" />
 <dbType value="String" />
 <layout type="log4net.Layout.PatternLayout">
  <conversionPattern value="%message" />
 </layout>
</parameter>


----- Original Message ----

From: Kim Therkelsen <kte@lyngsoesystems.com>

To: log4net-user@logging.apache.org

Sent: Friday, August 24, 2007 9:48:04 AM

Subject: Error in SqlCeParameter causes error in log4net



Hi,

   I am having this error:

   http://csharponphone.blogspot.com/2006/08/sqlceparameter-bug.html

     

   Are there any fixes for this?

     

   Another thing is that if I adjust my column to a max size of 255 I still
get an error if I try to insert more than 255 characters - how do I get
log4net to automatically reduce the size of the message to 255 (to cut the
last part of the message)?

     Best regards

 Lyngsoe Systems A/S 


Mime
View raw message