Again... The code Ilia, the code. Share the code instead a DLL. In your opinion which is the sense of adding a DLL just for less than 100 lines ? Who will update that DLL each time NLog release a new version or NH release a new version ? Share the code, that is all.
On Tue, May 3, 2011 at 5:22 PM, Ilia Ternovich <[email protected]> wrote: > Thanks Fabio, but http://nhlogging.codeplex.com/ is referenced against > NHibernate 3.0 and not working with current release... I've mentioned > it in previous mail > > > 2011/5/4 Fabio Maulo <[email protected]>: > > You can have and use your custom logger even redoing it > > > 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. > > > > -- > 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.
