summaryrefslogtreecommitdiff
path: root/src/vhost.erl
diff options
context:
space:
mode:
authorJean-Sébastien Pédron <jean-sebastien@rabbitmq.com>2020-07-06 14:20:39 +0200
committerJean-Sébastien Pédron <jean-sebastien@rabbitmq.com>2020-07-06 14:20:39 +0200
commit788edee3162f18acb2b2e2a0af900dbd0bc8db2b (patch)
tree80b0614ba938e52b03cd71c1b6ece03ebc904b3b /src/vhost.erl
parentcd2fee1a50fc4d2dd291fb82333f94a5d1c4c0ce (diff)
downloadrabbitmq-server-git-788edee3162f18acb2b2e2a0af900dbd0bc8db2b.tar.gz
rabbit_prelaunch_early_logging: Configure `rabbit_log` as a Logger handler
Currently, when the new Logger API exposed by Erlang is being used by an application, messages are lost once Lager is configured. That is because Lager does not know about Logger in this context. To fix this, `rabbit_log` is configured as a Logger handler which calls Lager API. This means that Logger messages are passed to Lager. Logger's log level is to set to pass all messages (including debug). Message routing/filtering is done by Lager instead. This change depends on new log/2 function being added to the `rabbit_log` module in rabbitmq-common.
Diffstat (limited to 'src/vhost.erl')
0 files changed, 0 insertions, 0 deletions