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 "m (JIRA)" <ji...@apache.org> on 2008/05/06 18:20:55 UTC
[jira] Created: (LOG4NET-152) getting AsoNetAppender to work
getting AsoNetAppender to work
------------------------------
Key: LOG4NET-152
URL: https://issues.apache.org/jira/browse/LOG4NET-152
Project: Log4net
Issue Type: Improvement
Affects Versions: 1.2.10
Environment: windows asp.net c#
Reporter: m
I've been trying to get log4net to work with asp.net 2.0 and a database table. Here is the config file:
<configSections>
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
</configSections>
<log4net>
<appender name="AdoNetAppender" type="log4net.Appender.AdoNetAppender">
<bufferSize value="1" />
<connectionType value="System.Data.SqlClient.SqlConnection, System.Data, Version=1.2.10.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<connectionString value="server=CJISDEVSQL01;database=EventLog;integrated security=true;" />
<commandText value="exec LD80Event_CREATE @eventDate, @logLevel, @message, @exception, @updateUserName" />
<parameter>
<parameterName value="@eventDate" />
<dbType value="DateTime" />
<layout type="log4net.Layout.RawTimeStampLayout" />
</parameter>
<parameter>
<parameterName value="@logLevel" />
<dbType value="String" />
<size value="512" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%p" />
</layout>
</parameter>
<parameter>
<parameterName value="@message" />
<dbType value="String" />
<size value="4000" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%m" />
</layout>
</parameter>
<parameter>
<parameterName value="@exception" />
<dbType value="String" />
<size value="4000" />
<layout type="log4net.Layout.ExceptionLayout" />
</parameter>
<parameter>
<parameterName value="@updateUserName" />
<dbType value="String" />
<size value="50" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%p" />
</layout>
</parameter>
</appender>
<logger name="eventLog">
<level value="ALL" />
<appender-ref ref="AdoNetAppender" />
</logger>
<root>
<level value="ALL" />
<appender-ref ref="AdoNetAppender" />
</root>
</log4net>
This is the line of code in Global.asax, Application_Start method:
log4net.Config.XmlConfigurator.Configure();
This is in the default page:
private static readonly ILog eventLog = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
The issue is all the properties are 'always' set to false when the application is running and 'nothing' is ever written to the database. I have been searching the web for a week now and I can not find any information that has made a difference.
Can you help with this problem?
Thank you.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (LOG4NET-152) getting AsoNetAppender to work
Posted by "m (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LOG4NET-152?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12595296#action_12595296 ]
m commented on LOG4NET-152:
---------------------------
Thank you for the tip about how to debug log4net. I was able to track down
the issues:
Your SDK documentation at
http://logging.apache.org/log4net/release/sdk/index.html has a sample of
the 'configSections' which is incorrect. I had to change this to:
<section name="log4net"
type="log4net.Config.Log4NetConfigurationSectionHandler"
requirePermission="false" />
I also had to add the connection string to the 'appSettings' section of
the config file, log4net could not find the 'connectionString' in the
'log4net', 'appender' section of the config file.
Your reply ('Resolution: Invalid') to my original inquiry and your
statement ('Instead of relying on people guessing what your error is')
were totally incorrect and I really hope you will be kinder to other
developers in the future.
Thank you,
Michelle
"Ron Grabowski (JIRA)" <ji...@apache.org>
05/07/2008 02:53 PM
To
mcourier@co.slo.ca.us
cc
Subject
[jira] Commented: (LOG4NET-152) getting AsoNetAppender to work
[
https://issues.apache.org/jira/browse/LOG4NET-152?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12595055#action_12595055
]
Ron Grabowski commented on LOG4NET-152:
---------------------------------------
Instead of relying on people guessing what your error is, I suggest you
read the faq on how to enable internal debug messages so you can see what
log4net says the problem is:
How do I enable log4net internal debugging?
http://logging.apache.org/log4net/release/faq.html
This is essentially what log4net is doing in code:
Type connectionType = Type.GetType("System.Data.SqlClient.SqlConnection,
System.Data, Version=1.2.10.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089");
using (connection)
{
connection.ConnectionString =
"server=CJISDEVSQL01;database=EventLog;integrated security=true;"
connection.Open();
Assert.IsTrue(connection.State == ConnectionState.Open);
}
If that doesn't work then the AdoNetAppender won't work. My point about
System.Data and the 1.2.10.0 version number is that there is no 1.2.10
version of System.Data. There is a 2.0.0.0 version:
System.Data.SqlClient.SqlConnection, System.Data, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089
That may or may not be the problem. I'm just guessing...you should enable
internal debugging to learn what the real issue is.
table. Here is the config file:
type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
Version=1.2.10.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
value="server=CJISDEVSQL01;database=EventLog;integrated security=true;" />
@message, @exception, @updateUserName" />
LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
application is running and 'nothing' is ever written to the database. I
have been searching the web for a week now and I can not find any
information that has made a difference.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
> getting AsoNetAppender to work
> ------------------------------
>
> Key: LOG4NET-152
> URL: https://issues.apache.org/jira/browse/LOG4NET-152
> Project: Log4net
> Issue Type: Improvement
> Affects Versions: 1.2.10
> Environment: windows asp.net c#
> Reporter: m
>
> I've been trying to get log4net to work with asp.net 2.0 and a database table. Here is the config file:
> <configSections>
> <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
> </configSections>
> <log4net>
> <appender name="AdoNetAppender" type="log4net.Appender.AdoNetAppender">
> <bufferSize value="1" />
> <connectionType value="System.Data.SqlClient.SqlConnection, System.Data, Version=1.2.10.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
> <connectionString value="server=CJISDEVSQL01;database=EventLog;integrated security=true;" />
> <commandText value="exec LD80Event_CREATE @eventDate, @logLevel, @message, @exception, @updateUserName" />
> <parameter>
> <parameterName value="@eventDate" />
> <dbType value="DateTime" />
> <layout type="log4net.Layout.RawTimeStampLayout" />
> </parameter>
> <parameter>
> <parameterName value="@logLevel" />
> <dbType value="String" />
> <size value="512" />
> <layout type="log4net.Layout.PatternLayout">
> <conversionPattern value="%p" />
> </layout>
> </parameter>
> <parameter>
> <parameterName value="@message" />
> <dbType value="String" />
> <size value="4000" />
> <layout type="log4net.Layout.PatternLayout">
> <conversionPattern value="%m" />
> </layout>
> </parameter>
> <parameter>
> <parameterName value="@exception" />
> <dbType value="String" />
> <size value="4000" />
> <layout type="log4net.Layout.ExceptionLayout" />
> </parameter>
> <parameter>
> <parameterName value="@updateUserName" />
> <dbType value="String" />
> <size value="50" />
> <layout type="log4net.Layout.PatternLayout">
> <conversionPattern value="%p" />
> </layout>
> </parameter>
> </appender>
> <logger name="eventLog">
> <level value="ALL" />
> <appender-ref ref="AdoNetAppender" />
> </logger>
> <root>
> <level value="ALL" />
> <appender-ref ref="AdoNetAppender" />
> </root>
> </log4net>
> This is the line of code in Global.asax, Application_Start method:
> log4net.Config.XmlConfigurator.Configure();
> This is in the default page:
> private static readonly ILog eventLog = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
> The issue is all the properties are 'always' set to false when the application is running and 'nothing' is ever written to the database. I have been searching the web for a week now and I can not find any information that has made a difference.
> Can you help with this problem?
> Thank you.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (LOG4NET-152) getting AsoNetAppender to work
Posted by "Ron Grabowski (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LOG4NET-152?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12595055#action_12595055 ]
Ron Grabowski commented on LOG4NET-152:
---------------------------------------
Instead of relying on people guessing what your error is, I suggest you read the faq on how to enable internal debug messages so you can see what log4net says the problem is:
How do I enable log4net internal debugging?
http://logging.apache.org/log4net/release/faq.html
This is essentially what log4net is doing in code:
Type connectionType = Type.GetType("System.Data.SqlClient.SqlConnection, System.Data, Version=1.2.10.0, Culture=neutral, PublicKeyToken=b77a5c561934e089");
using (connection)
{
connection.ConnectionString = "server=CJISDEVSQL01;database=EventLog;integrated security=true;"
connection.Open();
Assert.IsTrue(connection.State == ConnectionState.Open);
}
If that doesn't work then the AdoNetAppender won't work. My point about System.Data and the 1.2.10.0 version number is that there is no 1.2.10 version of System.Data. There is a 2.0.0.0 version:
System.Data.SqlClient.SqlConnection, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
That may or may not be the problem. I'm just guessing...you should enable internal debugging to learn what the real issue is.
> getting AsoNetAppender to work
> ------------------------------
>
> Key: LOG4NET-152
> URL: https://issues.apache.org/jira/browse/LOG4NET-152
> Project: Log4net
> Issue Type: Improvement
> Affects Versions: 1.2.10
> Environment: windows asp.net c#
> Reporter: m
>
> I've been trying to get log4net to work with asp.net 2.0 and a database table. Here is the config file:
> <configSections>
> <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
> </configSections>
> <log4net>
> <appender name="AdoNetAppender" type="log4net.Appender.AdoNetAppender">
> <bufferSize value="1" />
> <connectionType value="System.Data.SqlClient.SqlConnection, System.Data, Version=1.2.10.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
> <connectionString value="server=CJISDEVSQL01;database=EventLog;integrated security=true;" />
> <commandText value="exec LD80Event_CREATE @eventDate, @logLevel, @message, @exception, @updateUserName" />
> <parameter>
> <parameterName value="@eventDate" />
> <dbType value="DateTime" />
> <layout type="log4net.Layout.RawTimeStampLayout" />
> </parameter>
> <parameter>
> <parameterName value="@logLevel" />
> <dbType value="String" />
> <size value="512" />
> <layout type="log4net.Layout.PatternLayout">
> <conversionPattern value="%p" />
> </layout>
> </parameter>
> <parameter>
> <parameterName value="@message" />
> <dbType value="String" />
> <size value="4000" />
> <layout type="log4net.Layout.PatternLayout">
> <conversionPattern value="%m" />
> </layout>
> </parameter>
> <parameter>
> <parameterName value="@exception" />
> <dbType value="String" />
> <size value="4000" />
> <layout type="log4net.Layout.ExceptionLayout" />
> </parameter>
> <parameter>
> <parameterName value="@updateUserName" />
> <dbType value="String" />
> <size value="50" />
> <layout type="log4net.Layout.PatternLayout">
> <conversionPattern value="%p" />
> </layout>
> </parameter>
> </appender>
> <logger name="eventLog">
> <level value="ALL" />
> <appender-ref ref="AdoNetAppender" />
> </logger>
> <root>
> <level value="ALL" />
> <appender-ref ref="AdoNetAppender" />
> </root>
> </log4net>
> This is the line of code in Global.asax, Application_Start method:
> log4net.Config.XmlConfigurator.Configure();
> This is in the default page:
> private static readonly ILog eventLog = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
> The issue is all the properties are 'always' set to false when the application is running and 'nothing' is ever written to the database. I have been searching the web for a week now and I can not find any information that has made a difference.
> Can you help with this problem?
> Thank you.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (LOG4NET-152) getting AsoNetAppender to work
Posted by "m (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LOG4NET-152?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12594926#action_12594926 ]
m commented on LOG4NET-152:
---------------------------
You can put any number you want in there, it still doesn't work.
Michelle Courier Brannon
ITD Software Engineer
805.781.5061
"Ron Grabowski (JIRA)" <ji...@apache.org>
05/06/2008 02:41 PM
To
mcourier@co.slo.ca.us
cc
Subject
[jira] Resolved: (LOG4NET-152) getting AsoNetAppender to work
[
https://issues.apache.org/jira/browse/LOG4NET-152?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ron Grabowski resolved LOG4NET-152.
-----------------------------------
Resolution: Invalid
Please post general questions about log4net to the mailing list.
I don't think there is a v1.2.10 of System.Data:
<connectionType value="System.Data.SqlClient.SqlConnection, System.Data,
Version=1.2.10.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
table. Here is the config file:
type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
Version=1.2.10.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
value="server=CJISDEVSQL01;database=EventLog;integrated security=true;" />
@message, @exception, @updateUserName" />
LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
application is running and 'nothing' is ever written to the database. I
have been searching the web for a week now and I can not find any
information that has made a difference.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
> getting AsoNetAppender to work
> ------------------------------
>
> Key: LOG4NET-152
> URL: https://issues.apache.org/jira/browse/LOG4NET-152
> Project: Log4net
> Issue Type: Improvement
> Affects Versions: 1.2.10
> Environment: windows asp.net c#
> Reporter: m
>
> I've been trying to get log4net to work with asp.net 2.0 and a database table. Here is the config file:
> <configSections>
> <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
> </configSections>
> <log4net>
> <appender name="AdoNetAppender" type="log4net.Appender.AdoNetAppender">
> <bufferSize value="1" />
> <connectionType value="System.Data.SqlClient.SqlConnection, System.Data, Version=1.2.10.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
> <connectionString value="server=CJISDEVSQL01;database=EventLog;integrated security=true;" />
> <commandText value="exec LD80Event_CREATE @eventDate, @logLevel, @message, @exception, @updateUserName" />
> <parameter>
> <parameterName value="@eventDate" />
> <dbType value="DateTime" />
> <layout type="log4net.Layout.RawTimeStampLayout" />
> </parameter>
> <parameter>
> <parameterName value="@logLevel" />
> <dbType value="String" />
> <size value="512" />
> <layout type="log4net.Layout.PatternLayout">
> <conversionPattern value="%p" />
> </layout>
> </parameter>
> <parameter>
> <parameterName value="@message" />
> <dbType value="String" />
> <size value="4000" />
> <layout type="log4net.Layout.PatternLayout">
> <conversionPattern value="%m" />
> </layout>
> </parameter>
> <parameter>
> <parameterName value="@exception" />
> <dbType value="String" />
> <size value="4000" />
> <layout type="log4net.Layout.ExceptionLayout" />
> </parameter>
> <parameter>
> <parameterName value="@updateUserName" />
> <dbType value="String" />
> <size value="50" />
> <layout type="log4net.Layout.PatternLayout">
> <conversionPattern value="%p" />
> </layout>
> </parameter>
> </appender>
> <logger name="eventLog">
> <level value="ALL" />
> <appender-ref ref="AdoNetAppender" />
> </logger>
> <root>
> <level value="ALL" />
> <appender-ref ref="AdoNetAppender" />
> </root>
> </log4net>
> This is the line of code in Global.asax, Application_Start method:
> log4net.Config.XmlConfigurator.Configure();
> This is in the default page:
> private static readonly ILog eventLog = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
> The issue is all the properties are 'always' set to false when the application is running and 'nothing' is ever written to the database. I have been searching the web for a week now and I can not find any information that has made a difference.
> Can you help with this problem?
> Thank you.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (LOG4NET-152) getting AsoNetAppender to work
Posted by "Ron Grabowski (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LOG4NET-152?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ron Grabowski resolved LOG4NET-152.
-----------------------------------
Resolution: Invalid
Please post general questions about log4net to the mailing list.
I don't think there is a v1.2.10 of System.Data:
<connectionType value="System.Data.SqlClient.SqlConnection, System.Data, Version=1.2.10.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
> getting AsoNetAppender to work
> ------------------------------
>
> Key: LOG4NET-152
> URL: https://issues.apache.org/jira/browse/LOG4NET-152
> Project: Log4net
> Issue Type: Improvement
> Affects Versions: 1.2.10
> Environment: windows asp.net c#
> Reporter: m
>
> I've been trying to get log4net to work with asp.net 2.0 and a database table. Here is the config file:
> <configSections>
> <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
> </configSections>
> <log4net>
> <appender name="AdoNetAppender" type="log4net.Appender.AdoNetAppender">
> <bufferSize value="1" />
> <connectionType value="System.Data.SqlClient.SqlConnection, System.Data, Version=1.2.10.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
> <connectionString value="server=CJISDEVSQL01;database=EventLog;integrated security=true;" />
> <commandText value="exec LD80Event_CREATE @eventDate, @logLevel, @message, @exception, @updateUserName" />
> <parameter>
> <parameterName value="@eventDate" />
> <dbType value="DateTime" />
> <layout type="log4net.Layout.RawTimeStampLayout" />
> </parameter>
> <parameter>
> <parameterName value="@logLevel" />
> <dbType value="String" />
> <size value="512" />
> <layout type="log4net.Layout.PatternLayout">
> <conversionPattern value="%p" />
> </layout>
> </parameter>
> <parameter>
> <parameterName value="@message" />
> <dbType value="String" />
> <size value="4000" />
> <layout type="log4net.Layout.PatternLayout">
> <conversionPattern value="%m" />
> </layout>
> </parameter>
> <parameter>
> <parameterName value="@exception" />
> <dbType value="String" />
> <size value="4000" />
> <layout type="log4net.Layout.ExceptionLayout" />
> </parameter>
> <parameter>
> <parameterName value="@updateUserName" />
> <dbType value="String" />
> <size value="50" />
> <layout type="log4net.Layout.PatternLayout">
> <conversionPattern value="%p" />
> </layout>
> </parameter>
> </appender>
> <logger name="eventLog">
> <level value="ALL" />
> <appender-ref ref="AdoNetAppender" />
> </logger>
> <root>
> <level value="ALL" />
> <appender-ref ref="AdoNetAppender" />
> </root>
> </log4net>
> This is the line of code in Global.asax, Application_Start method:
> log4net.Config.XmlConfigurator.Configure();
> This is in the default page:
> private static readonly ILog eventLog = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
> The issue is all the properties are 'always' set to false when the application is running and 'nothing' is ever written to the database. I have been searching the web for a week now and I can not find any information that has made a difference.
> Can you help with this problem?
> Thank you.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (LOG4NET-152) getting AsoNetAppender to work
Posted by "Ron Grabowski (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LOG4NET-152?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12595401#action_12595401 ]
Ron Grabowski commented on LOG4NET-152:
---------------------------------------
This ticket was marked as Invalid because there wasn't a major defect in the log4net code. The log4net bug tracking system is not designed to be a general support area. There are two mailing lists for helping users and developers of log4net. Believe it or not its rather difficult to diagnose why a 50+ line snippet of xml just doesn't work. I looked at your xml and made a guess why it wasn't working. Yes, my guess was totally incorrect...that's one of the risks one takes when making a guess. Without a stack trace, an error message, and little knowledge of your environment what should I have guessed? The part about running in Medium Trust was a rather large detail to leave out. Medium Trust is tricky...especially for 3rd party libraries. If you want to update the documentation and provide a patch explaining some of the nuances with log4net in Medium Trust and Low Trust environments I'll gladly commit it for the benefit of everyone. Remember, you're getting free support for a free software package. You'll get more free support (not only from me but from other log4net users) on the mailing lists.
The connectionString property was recently added to log4net and will be available in the next release.
The next version of log4net will also make it easier to capture configuration errors. The syntax hasn't been finalized but will most likely look very similar to this:
ICollection configurationMessages = XmlConfigurator.Configure();
for (int i=0;i<configurationMessages.Count;i++)
{
Response.Write(configurationMessages[i].ToString() + "<br />");
}
We have a number of open issues before the next version is released. I look forward to your contributions in getting those issues resolved. Your help is appreciated!
> getting AsoNetAppender to work
> ------------------------------
>
> Key: LOG4NET-152
> URL: https://issues.apache.org/jira/browse/LOG4NET-152
> Project: Log4net
> Issue Type: Improvement
> Affects Versions: 1.2.10
> Environment: windows asp.net c#
> Reporter: m
>
> I've been trying to get log4net to work with asp.net 2.0 and a database table. Here is the config file:
> <configSections>
> <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
> </configSections>
> <log4net>
> <appender name="AdoNetAppender" type="log4net.Appender.AdoNetAppender">
> <bufferSize value="1" />
> <connectionType value="System.Data.SqlClient.SqlConnection, System.Data, Version=1.2.10.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
> <connectionString value="server=CJISDEVSQL01;database=EventLog;integrated security=true;" />
> <commandText value="exec LD80Event_CREATE @eventDate, @logLevel, @message, @exception, @updateUserName" />
> <parameter>
> <parameterName value="@eventDate" />
> <dbType value="DateTime" />
> <layout type="log4net.Layout.RawTimeStampLayout" />
> </parameter>
> <parameter>
> <parameterName value="@logLevel" />
> <dbType value="String" />
> <size value="512" />
> <layout type="log4net.Layout.PatternLayout">
> <conversionPattern value="%p" />
> </layout>
> </parameter>
> <parameter>
> <parameterName value="@message" />
> <dbType value="String" />
> <size value="4000" />
> <layout type="log4net.Layout.PatternLayout">
> <conversionPattern value="%m" />
> </layout>
> </parameter>
> <parameter>
> <parameterName value="@exception" />
> <dbType value="String" />
> <size value="4000" />
> <layout type="log4net.Layout.ExceptionLayout" />
> </parameter>
> <parameter>
> <parameterName value="@updateUserName" />
> <dbType value="String" />
> <size value="50" />
> <layout type="log4net.Layout.PatternLayout">
> <conversionPattern value="%p" />
> </layout>
> </parameter>
> </appender>
> <logger name="eventLog">
> <level value="ALL" />
> <appender-ref ref="AdoNetAppender" />
> </logger>
> <root>
> <level value="ALL" />
> <appender-ref ref="AdoNetAppender" />
> </root>
> </log4net>
> This is the line of code in Global.asax, Application_Start method:
> log4net.Config.XmlConfigurator.Configure();
> This is in the default page:
> private static readonly ILog eventLog = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
> The issue is all the properties are 'always' set to false when the application is running and 'nothing' is ever written to the database. I have been searching the web for a week now and I can not find any information that has made a difference.
> Can you help with this problem?
> Thank you.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.