Have you tried doing that by code? Just call LoggerProvider.SetLoggersFactory(new CustomLoggerFactory()); Where CustomLoggerFactory inherits from ILoggerFactory.
RP On Sunday, July 12, 2015 at 5:20:37 PM UTC+1, JJ BB wrote: > > Hi folks, > > I'm trying to add nhibernate-logger property in nhibernate.cfg.xml file > (it is a costumer's requirement): > > <property name="nhibernate-logger">MyLibrary.CustomLogger, > MyLibrary</property> > > > I get this exception when loading config file: > > The attribute 'name' is not valid. The value ' nhibernate -logger ' is > invalid according to its datatype ' String' - . Error in restricting > Enumeration > > Removing this key no exception is raised but CustomLogger is not called. > > I'm trying to apply this example: > > > http://www.marthijnvandenheuvel.com/2012/02/20/simple-logger-for-nhibernate-3/ > > The example uses app.Config but I must use nhibernate.cfg.xml file. > > Please can you provide an example? > > Cheers > -- You received this message because you are subscribed to the Google Groups "nhusers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/nhusers. For more options, visit https://groups.google.com/d/optout.
