You can have and use your custom logger even redoing it http://nhforge.org/wikis/howtonh/using-nlog-via-common-logging-with-nhibernate.aspx
<http://nhforge.org/wikis/howtonh/using-nlog-via-common-logging-with-nhibernate.aspx>That does not mean that we want a new DLL to deploy. If you look inside NHibernate you can find how we are creating a ILoggerFactory and a IInternalLogger on the fly for Log4Net without have a dependency to Log4Net. You can do the same for NLog o for CommonLogging ( http://netcommon.sourceforge.net/). On Tue, May 3, 2011 at 5:11 PM, tillias <[email protected]> wrote: > Why? > > Does it means that you don't want custom logging used for NHibernate? > Or there is another way to use NLog or Enterprise Logging with > NHibernate? > > On 4 май, 00:08, Fabio Maulo <[email protected]> wrote: > > No. > > > > > > > > > > > > > > > > > > > > On Tue, May 3, 2011 at 5:04 PM, tillias <[email protected]> wrote: > > > Hello! I've created logging bridge today for NHibernate and NLog by > > > providing custom implementations of ILoggerFactory and > > > IInternalLogger. Here are the description and some arch problems: > > >http://tillias.wordpress.com/2011/05/03/nhibernate-and-nlog/ > > > > > Everything works fine except that ILoggerFactory and IInternalLogger > > > are defined in NHibernate.dll assembly. In fact this means that custom > > > logging providers should be rebuild each time new version of > > > NHibernate is released (new assembly). > > > > > Is it possible to extract ILoggerFactory and IInternalLogger into > > > separate assembly? Thanks! > > > > > -- > > > 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. > > > > -- > > Fabio Maulo > > -- > 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. > > -- Fabio Maulo -- 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.
