Not sure why, that works perfectly for me: config/initializers/data_mapper.rb
# Some homebrewed mixins for replication, sequences etc require 'data_mapper' # Add a logger, for debugging DataMapper::Logger.new($stdout, :fatal) # Set some default options DataMapper::Property::String.length(0..255) Then anywhere inside the app I want to get log output: DataMapper.logger.level = DataMapper::Logger::Levels[:debug] The output just comes out in the terminal in whatever process started the rack server. On 06/06/2011, at 11:28, Yuri wrote: > On Jun 2, 8:21 pm, Chris Corbyn <[email protected]> wrote: >> Create a file in config/initializers, just called something like >> data_mapper.rb, then put it in there. > > Thanks, unfortunately no joy that way either. > > -- > 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.
