-->
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.  [ 5 posts ] 
Author Message
 Post subject: dumm question about show_sql
PostPosted: Mon Jun 12, 2006 8:50 am 
Newbie

Joined: Mon Jun 12, 2006 8:44 am
Posts: 13
How can I see the sql generated by nhibernate? I already marqued the show_sql=true


Top
 Profile  
 
 Post subject: Re: dumm question about show_sql
PostPosted: Mon Jun 12, 2006 10:33 am 
Newbie

Joined: Wed Sep 08, 2004 1:23 pm
Posts: 5
vintem wrote:
How can I see the sql generated by nhibernate? I already marqued the show_sql=true


The show_sql option really means "log sql to console". Depending on what type of application you are building, you may not have a console. In general, I have found it more useful to enable DEBUG level logging for the logger "NHibernate.SQL". This way you can log not just to the console but to any supported log4net appender.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 12, 2006 11:01 am 
Newbie

Joined: Mon Jun 12, 2006 8:44 am
Posts: 13
Do you have an example or know a link showing how to implement log4net?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 13, 2006 4:27 am 
Newbie

Joined: Mon Jun 05, 2006 8:51 am
Posts: 18
vintem wrote:
Do you have an example or know a link showing how to implement log4net?


What exactly do you want to implement? If you want to implement custom log4net appender, first refer to log4net manual.
If, on the other hand, you simply want to enable log4net for NHibernate, check this out.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 14, 2006 12:54 pm 
Newbie

Joined: Mon Jun 12, 2006 8:44 am
Posts: 13
I tried to use the link you said [http://www.hibernate.org/364.html], and then I checked for the Logs folder and didnt find one. Is there anything else to do? Like permission settings?


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

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.