Create a file in config/initializers, just called something like 
data_mapper.rb, then put it in there.


On 03/06/2011, at 13:20, Yuri wrote:

> On Jun 2, 1:44 pm, "Xavier (DBIYF)" <[email protected]> wrote:
>> DataMapper::Logger.new($stdout, :debug) before DataMapper.setup works
>> for me.
> 
> Where in Rails do you put that? I tried a few places but DM Rails
> seems to override it so logging goes back to the Rails logger after a
> one line log entry to stdout. The SQL logging I see in DM Rails is
> wired to instrumentation.
> 
> -- 
> 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.

Reply via email to