rails/rails — pull request #12340 by dasch (2013-09-24 16:00:44+00:00)
Title: Tag every log line when using TaggedLogging

We're using TaggedLogging to tag log lines with e.g. the customer account on which the request took place. Being able to grep the logs for specific customers, request id's and so forth is incredibly valuable, but also a bit tedious right now. The existing TaggedLogging only tags the first line in a multi-line log entry, so for instance, we will see this in our logs:

```
[Account: something] This is a very important
log line that's very difficult to find.
```

This pull request changes TaggedLogging such that *every* line in the log entry gets tagged, i.e.

```
[Account: something] This is a very important
[Account: something] log line that's very difficult to find.
```