Thanks Martin. But where do I have to add this sentence? I have created the app with your template for datamapper, and I don't see where is the call to DataMapper.setup(:default, '...')
I have put the sentence in the .irbrc file but it doesn't work. On Mar 17, 4:33 pm, Martin Gamsjaeger <[email protected]> wrote: > Make sure you put > > DataMapper::Logger.new($stdout, :debug) > > *before* > > DataMapper.setup(:default, '...') > > cheers > snusnu > > On Wed, Mar 17, 2010 at 15:54, jmcervera <[email protected]> wrote: > > I am trying Datamapper with Rails3 on jruby. > > And trying to learn Datamapper. > > How can I log the SQL queries to the console? > > > Thanks > > Juanma > > > -- > > You received this message because you are subscribed to the Google Groups > > "DataMapper" 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 > > athttp://groups.google.com/group/datamapper?hl=en. -- You received this message because you are subscribed to the Google Groups "DataMapper" 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/datamapper?hl=en.
