# Rails logger change format

**URL:** <https://www.ruby-forum.com/t/rails-logger-change-format/129529>\
**Category:** Rails\
**Created:** [February 19, 2008, 10:47am UTC](https://www.ruby-forum.com/t/rails-logger-change-format/129529 "2008-02-19T10:47:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chucky](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/b782af/32.png) [@chucky](https://www.ruby-forum.com/u/chucky)\
**Post date:** [February 19, 2008, 10:47am UTC](https://www.ruby-forum.com/t/rails-logger-change-format/129529/1 "2008-02-19T10:47:05Z")

</div>

Hi guys,

After few investigations I still cannot change the format of logs from  
rails 2.0.2 apps.

I tried with overwriting the format\_message method from Logger class and  
still nothing. I know that in Rails 2.0.2 BufferedLogger is used and I  
didn’t manage to change the format for this one.

What seems to be the easiest way to do that ?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![chucky](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/b782af/32.png) [@chucky](https://www.ruby-forum.com/u/chucky)\
**Post date:** [August 3, 2008, 5:25pm UTC](https://www.ruby-forum.com/t/rails-logger-change-format/129529/2 "2008-08-03T17:25:58Z")

</div>

Alin P. wrote:

> Hi guys,
> 
> After few investigations I still cannot change the format of logs from  
> rails 2.0.2 apps.
> 
> I tried with overwriting the format\_message method from Logger class and  
> still nothing. I know that in Rails 2.0.2 BufferedLogger is used and I  
> didn’t manage to change the format for this one.
> 
> What seems to be the easiest way to do that ?
> 
> Thanks in advance.

This is still an issue. Any idea please?

---

<div class="post-metadata">

**Author:** ![chucky](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/b782af/32.png) [@chucky](https://www.ruby-forum.com/u/chucky)\
**Post date:** [August 3, 2008, 5:28pm UTC](https://www.ruby-forum.com/t/rails-logger-change-format/129529/3 "2008-08-03T17:28:13Z")

</div>

Alin P. wrote:

> Hi guys,
> 
> After few investigations I still cannot change the format of logs from  
> rails 2.0.2 apps.
> 
> I tried with overwriting the format\_message method from Logger class and  
> still nothing. I know that in Rails 2.0.2 BufferedLogger is used and I  
> didn’t manage to change the format for this one.
> 
> What seems to be the easiest way to do that ?
> 
> Thanks in advance.

The same behavior seems to be also on rails 2.1.0  
I’m missing something ? Should I require something else ?  
Thanks.
