# Rake, the Rails Logger and color coding

**URL:** <https://www.ruby-forum.com/t/rake-the-rails-logger-and-color-coding/109177>\
**Category:** Rails\
**Created:** [July 12, 2007, 6:16am UTC](https://www.ruby-forum.com/t/rake-the-rails-logger-and-color-coding/109177 "2007-07-12T06:16:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeannibee](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/85e7bf/32.png) [@jeannibee](https://www.ruby-forum.com/u/jeannibee)\
**Post date:** [July 12, 2007, 6:16am UTC](https://www.ruby-forum.com/t/rake-the-rails-logger-and-color-coding/109177/1 "2007-07-12T06:16:02Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![jeannibee](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/85e7bf/32.png) [@jeannibee](https://www.ruby-forum.com/u/jeannibee)\
**Post date:** [July 20, 2007, 2:53am UTC](https://www.ruby-forum.com/t/rake-the-rails-logger-and-color-coding/109177/2 "2007-07-20T02:53:30Z")

</div>

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
