The logging is for NH developer or for advance user who want help NH providing a patch.AOP logging is for granular logging as we need in NH and write a method only to have a before-log and after-log is something not useful for us. The cross-cutting concern is about a multi-layer application but NH is a layer and log it is out of your scope. Are you activating the log of log4net ? or the log of UnitTest FX ? or the log of the IoC ?
At most what you can ask us is http://nhjira.koah.net/browse/NH-1554 <http://nhjira.koah.net/browse/NH-1554>For sure you can't ask us to log what you want because we will log what we need. 2009/7/10 Billy Stack <[email protected]> > Usually the consumer is a developer trying to integrate NHibernate into > codebase or a developer debugging an issue... > > However, I still have the same question: "Is there a valid argument to > simplify logging in NHibernate, thereby enabling an AOP framework to cater > for logging requirements?" > > > On Fri, Jul 10, 2009 at 3:22 PM, Fabio Maulo <[email protected]> wrote: > >> For who is the log ? >> Who is the consumer of a log entry ? >> >> 2009/7/10 Billy Stack <[email protected]> >> >>> Agreed but having logging code mixed with business logic surely cannot be >>> ideal. >>> >>> In relation to logging in the middle of a method, is it not a code smell >>> anyway? Could that method be "broken down" into smaller methods thereby >>> giving an architecture that would enable you to log exactly what you want? >>> >>> Also, is there a valid argument the simplify logging in NHibernate, >>> thereby enabling an AOP framework to cater for logging requirements. >>> - Disadvantage: Less logging >>> - Advantage: Cleaner code base + the likes of NHibernate profiler etc >>> are now available to help with issues >>> On Fri, Jul 10, 2009 at 3:11 PM, Tuna Toksoz <[email protected]>wrote: >>> >>>> NHibernate doesn't only log exceptional cases, you can't do aop in the >>>> middle of a method. >>>> >>>> Tuna Toksöz >>>> Eternal sunshine of the open source mind. >>>> >>>> http://devlicio.us/blogs/tuna_toksoz >>>> http://tunatoksoz.com >>>> http://twitter.com/tehlike >>>> >>>> >>>> >>>> >>>> On Fri, Jul 10, 2009 at 5:09 PM, bstack <[email protected]> wrote: >>>> >>>>> using e.g. the likes of PostSharp? I know there are discussions going >>>> >>>> >>>> >>>> >>>> >> >> >> -- >> Fabio Maulo >> >> >> -- 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 -~----------~----~----~----~------~----~------~--~---
