Project

General

Profile

How to change the log format of Redmine (production.log)

Added by thierry laporte almost 9 years ago

Hi
I have a question and I didn't find any clue..(I'm new with Redmin).
I have to change the log format in production.log (I also can create a new log file if necessary).
The goal is to have only 1 line by event :

before
Started GET "/login" for x.x.x.x at 2013-04-30 08:59:01 -0400
Processing by SessionsController#new as HTML
Rendered sessions/new.html.haml within layouts/application (4.3ms)
Completed 200 OK in 532ms (Views: 62.4ms | ActiveRecord: 0.0ms | ND API: 0.0ms)

after
Started GET "/login" for x.x.x.x at 2013-04-30 08:59:01 -0400 Processing by SessionsController#new as HTML Rendered sessions/new.html.haml within layouts/application (4.3ms) Completed 200 OK in 532ms (Views: 62.4ms | ActiveRecord: 0.0ms | ND API: 0.0ms)

Is it possible to do that ?

I saw that I have to modify additional_environment.rb, I'm looking some help on what can I write in this file..

Thanks
Thierry