-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Custom logging
PostPosted: Mon Jun 29, 2009 5:39 pm 
Newbie

Joined: Fri Mar 27, 2009 4:09 pm
Posts: 3
I am fairly new to NHibernate and log4net but i have successfully implemented it in a new project for our company and love it so far. However i have run into a problem which im not sure how to solve. It may be due to my lack of familiarity with nhibernate and/or log4net so be kind. =)

Currently we are using our own product (an application server) and implementing a (.net web service) behind our product which uses NHibernate. Our app server already has a logging framework and it is exposed to the service. I would like to take the logging that nhibernate is generating and stick it into our log so i can have nhibernate logging in the same file as our app server and service's logging. I looked a _little_ into log4net and wasnt quite sure where to start implementing my own logger/logging if thats indeed where i need to start.

Are there hooks that i need to hook into in NHibernate or do i need to implement a logging interface in log4net, then setup nhibernate to talk to the custome logger? How would i set that up in the nhbibernate configuration considering that this is not an asp.net application?

Any help or atleast a point in the right direction would help.

Thanks in advance!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.