Project

General

Profile

How to make every Thin instance write to its own log file

Added by Sebastian Paluch almost 9 years ago

Hi,

I have a Redmine 3.0.0 installation with Apache2 and Thin. Apache is set to use load balancer between 4 Thin instances. The issue is that all of them are writing logs to the same /log/production.log file causing messages to be mixed up and impossible to analyze.

Is there a way to make each instance to log to its own .log file?


Replies (3)

RE: How to make every Thin instance write to its own log file - Added by Pavel Potcheptsov almost 8 years ago

4 Thin instances

but these instances serve one rails application (REdmine), right?

RE: How to make every Thin instance write to its own log file - Added by Sebastian Paluch almost 8 years ago

Yes they are, but they are running at the same time and are logging at the same time to one file so the logs are mixed, e.g. many request are processed and logged, each saves many lines into the log, they are mixed, so it is hard to tell which line is for which request.

    (1-3/3)