DataMapper.logger = Slf4r::LoggerFacade.new(DataMapper)

is how I replace the datamapper logger with the Slf4r facade.

-Kristian

On Oct 20, 12:38 am, Rhett Sutphin <[email protected]> wrote:
> Hi,
>
> I'd like to have my DataMapper-based system log to a file with a custom 
> format (specifically, I'd like to include the clock time on each log message) 
> and do daily log rotation. The built-in logger in Ruby can do these two 
> things, but DataMapper::Logger can't, AFAICT. I've looked for a way to 
> substitute the built-in logger for DataMapper's, but that doesn't seem to be 
> possible. Googling has given me no suggestions. Any ideas?
>
> Thanks,
> Rhett

-- 
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