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 "Dominik Psenner (JIRA)" <ji...@apache.org> on 2011/08/13 13:04:27 UTC
[jira] [Commented] (LOG4NET-221) Store log in database using
log4net
[ https://issues.apache.org/jira/browse/LOG4NET-221?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13084584#comment-13084584 ]
Dominik Psenner commented on LOG4NET-221:
-----------------------------------------
There's no possibility to store these exact columns. Since log4net is a logging facility that bases on the idea of logging messages, it is not suited at all for this kind of operation.
Should this issue be closed and marked as invalid?
> 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Re: [jira] [Commented] (LOG4NET-221) Store log in database usinglog4net
Posted by Javier Sanchez <jf...@gmail.com>.
I Agree.
Enviado desde BB
-----Original Message-----
From: "Dominik Psenner (JIRA)" <ji...@apache.org>
Date: Sat, 13 Aug 2011 11:04:27
To: <lo...@logging.apache.org>
Reply-To: "Log4NET Dev" <lo...@logging.apache.org>
Subject: [jira] [Commented] (LOG4NET-221) Store log in database using
log4net
[ https://issues.apache.org/jira/browse/LOG4NET-221?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13084584#comment-13084584 ]
Dominik Psenner commented on LOG4NET-221:
-----------------------------------------
There's no possibility to store these exact columns. Since log4net is a logging facility that bases on the idea of logging messages, it is not suited at all for this kind of operation.
Should this issue be closed and marked as invalid?
> 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira