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 at > http://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.
