That's pretty cool. I just might get of my lazy arse and compile from source then :).
-Charles On Wed, Sep 22, 2010 at 5:10 PM, James Gregory <[email protected]>wrote: > I've just committed a new feature to master that might be of interest, > diagnostic logging. In short, it's a way of having a peek at what FNH is > doing when you tell it to do it's stuff. > > To use the feature (assuming you've updated to the latest revision), you > need to modify your Fluently.Configure structure to include a call to the > new Diagnostics method. Like so: http://gist.github.com/592669 > > The Diagnostics method takes a lambda for setting up the logger. You call > Enable to turn on the logging, but you also need to supply some kind of > listener to it for anything to be output; the easiest way to get it > outputting something is to call the OutputToConsole method, which is fairly > self explanatory. There is the potential for you to write your own listeners > and create whatever wonderful output formats you like, but I can't see > people doing this all that much (as hopefully the Console output will be > adequate). There's also an OutputToFile method, which is also self > explanatory. > > Having made those changes, you'll see something like this printed to the > console (or written to a file): http://gist.github.com/592679 > > I'll be looking to improve the Automapping side of the logging, but it's a > start. > > Any questions? > > -- > You received this message because you are subscribed to the Google Groups > "Fluent NHibernate" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<fluent-nhibernate%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/fluent-nhibernate?hl=en. > -- You received this message because you are subscribed to the Google Groups "Fluent NHibernate" 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/fluent-nhibernate?hl=en.
