Hi, I'm developing a server using DataMapper but I use Logging as logger for the whole application. I want to avoid using DataMapper::Logger resource as if I use it I should log database logs to other file.
I want to find out where the DataMapper::Logger is called. For example, if I configure DataMapper::Logger with level "info" then the SQL queries would be logged to the configured file (or STDOUT). However I don't find in dm-core library where exactly the logger is invoked to write out the SQL query. By searching the API I understand that #push or #<< are used for this purpose, but doing a "grep" in the source code I can't find it. What I want is to inspect where exactly the logger is called by DataMapper and try to replace it with my already configured Logging library to have unified logs. Could I know where and how exactly the Logger is invoked? Any experience or tip to make DataMapper using Logging library? Thanks a lot. PS: I read in the roadmap that replacing current DataMapper::Logger with Logging is planed, any new about it? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
