You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4net-dev@logging.apache.org by jacklitt <ja...@yahoo.com> on 2012/09/20 17:28:44 UTC
database and string
Hi
I am using log4net to loga to database
one of the columns is set as
<parameter>
<parameterName value="@exception" />
<dbType value="String" />
<size value="4000" />
<layout type="log4net.Layout.ExceptionLayout" />
</parameter>
however, i want to be able to save >4000 chatracters
Currenty I have xml objects that I deserialise to string and then this is
saved - however, itt is truncated to 4000.
Is there a string type that allows maxsize to be set.
Thanks
--
View this message in context: http://old.nabble.com/database-and-string-tp34458039p34458039.html
Sent from the Log4net - Dev mailing list archive at Nabble.com.
Re: database and string
Posted by Dominik Psenner <dp...@gmail.com>.
Try DbType Text.
2012/9/20 jacklitt <ja...@yahoo.com>:
>
> Hi
>
> I am using log4net to loga to database
>
> one of the columns is set as
>
> <parameter>
> <parameterName value="@exception" />
> <dbType value="String" />
> <size value="4000" />
> <layout type="log4net.Layout.ExceptionLayout" />
> </parameter>
>
> however, i want to be able to save >4000 chatracters
> Currenty I have xml objects that I deserialise to string and then this is
> saved - however, itt is truncated to 4000.
>
> Is there a string type that allows maxsize to be set.
>
> Thanks
> --
> View this message in context: http://old.nabble.com/database-and-string-tp34458039p34458039.html
> Sent from the Log4net - Dev mailing list archive at Nabble.com.
>
--
Dominik Psenner
## OpenPGP Key Signature #################################
# Key ID: B469318C #
# Fingerprint: 558641995F7EC2D251354C3A49C7E3D1B469318C #
##########################################################