Rails logger change format

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.

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?

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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs