What documentation suggests this option will work? I couldn’t find any mention of this in either mongodb or mongodb_ecto.
mongodb exposes a log option that expects a function (or MFA tuple) that is passed directly along to DBConnection.
mongodb_ecto exposes a log_level option that gets stashed in the adapter meta and then the connection uses that value to hook up the log option that mongodb expects
Even if you’re not using mongodb_ecto, the code in that last link could be helpful for writing your own function to pass as the log option to the bare mongodb driver.


















