Rake, the Rails Logger and color coding

Hi

I’m using the RAILS_DEFAULT_LOGGER in my Rake task but anything that I
log is NOT timestamped nor color coded. So my questions are:

  1. How do I get the color coding much the same as the default logging
    functionality?
  2. How do I properly ‘set’ this up. Should I be creating a
    :format_logger task and using it as a dependency for all my other tasks
    or is this done at the ‘top’ of the rakefile before the task
    definitions?

Thanks.

Jean N. wrote:

Hi

I’m using the RAILS_DEFAULT_LOGGER in my Rake task but anything that I
log is NOT timestamped nor color coded. So my questions are:

  1. How do I get the color coding much the same as the default logging
    functionality?
  2. How do I properly ‘set’ this up. Should I be creating a
    :format_logger task and using it as a dependency for all my other tasks
    or is this done at the ‘top’ of the rakefile before the task
    definitions?

Thanks.

/bump