I guess it would be something like

sprinter_log = BufferedLogger.new("sprinter_runner.log")

sprinter_log.log('yay I'm logging')



On 30 apr, 06:37, Tim Haines <[email protected]> wrote:
> Hi there,
>
> I'm wondering if there's a way to have any log statements generated
> from a specific method on a model get logged into a separate file from
> the normal development/production log files?
>
> i.e. I want the whole app to log as normal, apart from the
> Sprinter.run_often method, which I'd like to log to
> sprinter_running.log
>
> Cheers,
>
> Tim.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to