# Logging sometimes reports wrong database in multisite

**URL:** <https://meta.discourse.org/t/logging-sometimes-reports-wrong-database-in-multisite/69088>\
**Category:** Feature\
**Created:** [August 30, 2017, 5:03pm UTC](https://meta.discourse.org/t/logging-sometimes-reports-wrong-database-in-multisite/69088 "2017-08-30T17:03:53Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![dscat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dscat/32/203656_2.png) [@dscat](https://meta.discourse.org/u/dscat)\
**Post date:** [March 2, 2021, 4:16pm UTC](https://meta.discourse.org/t/logging-sometimes-reports-wrong-database-in-multisite/69088/14 "2021-03-02T16:16:54Z")

</div>

Hi there,  
in my organization we use lograge/graylog for all of our apps and we use the JSON formatter because it just gives us a more organized way to figure out problems.

We’re implementing a forum using discourse which does provide a lograge option but uses the `KeyValue` formatter, which would complicate our setup.

I have a PR [adding a lograge formatter env var · Pull Request #12206 · discourse/discourse](https://github.com/discourse/discourse/pull/12206/files) that still leaves the default formatter to `KeyValue` as it is right now but allows to override it by specifying a `LOGRAGE_FORMATTER` env var.

---

_[View the full topic](https://meta.discourse.org/t/logging-sometimes-reports-wrong-database-in-multisite/69088)._
