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 "Stefan Bodewig (JIRA)" <ji...@apache.org> on 2011/08/15 08:14:27 UTC

[jira] [Updated] (LOG4NET-221) Store log in database using log4net

     [ https://issues.apache.org/jira/browse/LOG4NET-221?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stefan Bodewig updated LOG4NET-221:
-----------------------------------

    Fix Version/s:     (was: 1.2.10)
                   1.2.11

> Store log in database using log4net
> -----------------------------------
>
>                 Key: LOG4NET-221
>                 URL: https://issues.apache.org/jira/browse/LOG4NET-221
>             Project: Log4net
>          Issue Type: Wish
>    Affects Versions: 1.2.10
>         Environment: Win XP, Visual studio 2005 (framework 2.0)
>            Reporter: Mai Lam
>             Fix For: 1.2.11
>
>
> Hi master,
> Please help me: how to store log in database (MS SQL) using log4net. I want to store log in a table with structure as following:
> Table: Order
> Columns:
>      + OrderID (int)
>      + Volume (int)
>      + Price (Decimal)
>      + Side (Char)
> I found the configuration file that declare connection string, command text, parameters. But i don't know to implement.
> Is there the way to pass parameters into Info method? ex: Log.Info(OrderID, Volume, Price, Side). I've already review source code of log4net, but i don't know how to override Info method with multiple parameters
> Please help me. Thank a lot

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira