I've been trying to follow the directions on the NHProf site but can't seem to make it work. What am I missing?
I put a log4net configuration section in my web.config:
<configSections>
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net/>
...
</configSections>
...
<log4net>
<appender name="NHProfAppender" type="HibernatingRhinos.Profiler.Appender.NHibernate.NHProfAppender, HibernatingRhinos.Profiler.Appender">
<sink value="http://localhost:22897"/>
</appender>
<logger name="HibernatingRhinos.Profiler.Appender.NHibernate.NHProfAppender.Setup">
<appender-ref ref="NHProfAppender"/>
</logger>
<log4net>
And in Global.asax
:
protected void Application_Start(...)
{
...
log4net.Config.XmlConfigurator.Configure();
...
}
The HibernatingRhinos.Profiler.Appender.dll
assembly is in my bin\
directory, but so far no dice. I've been able to verify that a log4net logger is being created with the right name, but I don't believe that an appender is associated with it. Any ideas?