title: How to solve collisions between Lager and OTP's Logger in Erlang?
body: <p>I have an Erlang project in OTP 22 which uses the built-in <strong>logger</strong> module for logging (which was added in OTP 21).</p>
  
  <p>My project uses the dependency "amqp_client" (<a href="https://github.com/rabbitmq/rabbitmq-erlang-client" rel="nofollow noreferrer">https://github.com/rabbitmq/rabbitmq-erlang-client</a>).</p>
  
  <p>This dependency uses <strong>lager</strong> library for logging, so <strong>lager</strong> is also one of the dependencies in my project.</p>
  
  <p>From the moment I've added <strong>lager</strong> to my project, the logs that were done via <strong>logger</strong> are not working anymore (I guess that's because <strong>lager</strong> is overriding some logging-handler of the VM which <strong>logger</strong> also uses, or something like this?)</p>
  
  <p>Anyone has an idea?</p>