show_sql goes to the Console window. This is not necessarily what gets
displayed on the visual studio Output window.

as for log4net - it depends on the way you configure log4net, which you did
not share here, so help will be difficult to be given.


On Tue, Jan 19, 2010 at 12:34 AM, nabils <[email protected]> wrote:

> I have spent the whole day trying to work out why show_sql and
> nhibernate logs through log4net are not showing up in my visual studio
> output window. Would really appreciate some help. This is driving me
> insane.
>
> For show_sql I have the below in web.config. The config is working
> fine as I am able to connect to the db with no problems. Am I missing
> something? I am actually trying to debug another issue but need
> logging to do it.
>
> Thanks in advance
>
> <hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
>    <session-factory>
>      <property name="connection.provider">
>        NHibernate.Connection.DriverConnectionProvider
>      </property>
>      <property name="connection.driver_class">
>        NHibernate.Driver.SqlClientDriver
>      </property>
>      <property name="connection.connection_string">
>        .....
>      </property>
>      <property name="dialect">
>        NHibernate.Dialect.MsSql2005Dialect
>      </property>
>      <property name="show_sql">
>        true
>      </property>
>      <property name="proxyfactory.factory_class">
>        NHibernate.ByteCode.Castle.ProxyFactoryFactory,
> NHibernate.ByteCode.Castle
>      </property>
>    </session-factory>
>  </hibernate-configuration>
>
> --
> You received this message because you are subscribed to the Google Groups
> "nhusers" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<nhusers%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/nhusers?hl=en.
>
>
>
>


-- 
Ken Egozi.
http://www.kenegozi.com/blog
http://www.delver.com
http://www.musicglue.com
http://www.castleproject.org
http://www.idcc.co.il - הכנס הקהילתי הראשון למפתחי דוטנט - בואו בהמוניכם
--
You received this message because you are subscribed to the Google Groups "nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.

Reply via email to