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!
|
|