Profiler Appender configuration via config file

267 views
Skip to first unread message

mauro.s...@gmail.com

unread,
Jun 15, 2011, 3:15:55 AM6/15/11
to nhp...@googlegroups.com

Hi,

 

I’m using the latest build (887)in my project bin there is the assembly “HibernatingRhinos.Profiler.Appender.NHibernateLog4Net” and in my log4net configuration there is this config:

 

<!-- NHibernate.Profiler Configuration .Net 4.0 -->

<appender name="NHProfAppender" type="HibernatingRhinos.Profiler.Appender.NHibernate.NHProfAppender, HibernatingRhinos.Profiler.Appender.NHibernateLog4Net">

                <sink value="tcp://127.0.0.1:22897" />

</appender>

<logger name="HibernatingRhinos.Profiler.Appender.NHibernate.NHProfAppender.Setup">

                <appender-ref ref="NHProfAppender"/>

</logger>

<!-- NHibernate.Profiler -->

 

But log4net complains saying: log4net:ERROR XmlHierarchyConfigurator: Appender named [NHProfAppender] not found

 

Any idea?

.m

__________________________________________________

Mauro Servienti  | Microsoft MVP | MCTS | IM: ma...@topics.it

 

Fitzchak Yitzchaki

unread,
Jun 15, 2011, 3:50:55 AM6/15/11
to nhp...@googlegroups.com, mauro.s...@gmail.com
Can't reproduce that. Can you send me a sample project that reproduce that?

--
You received this message because you are subscribed to the Google Groups "nhprof" group.
To post to this group, send email to nhp...@googlegroups.com.
To unsubscribe from this group, send email to nhprof+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/nhprof?hl=en.

Mauro Servienti

unread,
Jun 15, 2011, 4:09:22 AM6/15/11
to nhprof
obviously no, I cannot reproduce this behavior, but the most important
thing is that I do not think it's a bug, I'm preatty sure I'm missing
something in the configuration, because if I programmatically
initialize the "appender" everything works fine.
What I'm looking for are some hints on where I can start to look at...

.m

On 15 Giu, 09:50, Fitzchak Yitzchaki <fitzc...@hibernatingrhinos.com>
wrote:
> Can't reproduce that. Can you send me a sample project that reproduce that?
>
> On Wed, Jun 15, 2011 at 10:15 AM, mauro.servie...@gmail.com <

Fitzchak Yitzchaki

unread,
Jun 15, 2011, 4:14:54 AM6/15/11
to nhp...@googlegroups.com, mauro.s...@gmail.com
Make sure that you call the XmlConfigurator.Configure at the application start.
Also, take a look on the documentation:

Mauro Servienti

unread,
Jun 15, 2011, 4:21:04 AM6/15/11
to nhprof
I solved my problem:
"HibernatingRhinos.Profiler.Appender.NHibernateLog4Net" has a
dependency on "HibernatingRhinos.Profiler.Appender".

Just a question why 2 different set of assemblies for basically the
same task? in previuos versions everything related to the appender was
in just one assembly.

.m

On 15 Giu, 10:14, Fitzchak Yitzchaki <fitzc...@hibernatingrhinos.com>
wrote:
> Make sure that you call the XmlConfigurator.Configure at the application
> start.
> Also, take a look on the documentation:http://nhprof.com/Learn/Usage/ProfileAppWithConfiguration
>
> On Wed, Jun 15, 2011 at 11:09 AM, Mauro Servienti <mauro.servie...@gmail.com

Fitzchak Yitzchaki

unread,
Jun 15, 2011, 4:33:03 AM6/15/11
to nhp...@googlegroups.com, mauro.s...@gmail.com
We extracted the log4net staff to a separate assembly in order to remove the dependency on the log4net.dll, since NHibernate 3 does not required any more dependency on that.
Reply all
Reply to author
Forward
0 new messages