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.10


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.
-
You can reply to this email to add a comment to the issue online.

Reply via email to