# Warnings from Mocha / Memento getlogger addhandler

**URL:** <https://discourse.julialang.org/t/warnings-from-mocha-memento-getlogger-addhandler/8127>\
**Category:** General Usage\
**Created:** [January 3, 2018, 11:07am UTC](https://discourse.julialang.org/t/warnings-from-mocha-memento-getlogger-addhandler/8127 "2018-01-03T11:07:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Colin\_Beckingham](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/colin_beckingham/32/4878_2.png) [@Colin\_Beckingham](https://discourse.julialang.org/u/Colin_Beckingham)\
**Post date:** [January 3, 2018, 11:07am UTC](https://discourse.julialang.org/t/warnings-from-mocha-memento-getlogger-addhandler/8127/1 "2018-01-03T11:07:17Z")

</div>

Using compiled Julia 0.6: I’m puzzled by the warnings I am getting from Mocha via Memento logging which seem to indicate that functions `get_logger` and `add_handler` are deprecated in favour of `getlogger` and `addhandler`. However in Memento `deprecated.jl` there is only a mention of `get_logger` deprecated but no replacement function. Is this coming from another package? Everything seems to run fine, so just a question of interest, perhaps whether I should be reporting this as an issue?

---

<div class="post-metadata">

**Author:** ![Gnimuc](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gnimuc/32/2194_2.png) [@Gnimuc](https://discourse.julialang.org/u/Gnimuc)\
**Post date:** [January 4, 2018, 12:20pm UTC](https://discourse.julialang.org/t/warnings-from-mocha-memento-getlogger-addhandler/8127/2 "2018-01-04T12:20:01Z")

</div>

you should fix the warnings by replacing `get_logger` & `add_handler` with `getlogger` & `addhandler` respectively at corresponding lines in `Mocha` and submit a PR.

---

<div class="post-metadata">

**Author:** ![Colin\_Beckingham](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/colin_beckingham/32/4878_2.png) [@Colin\_Beckingham](https://discourse.julialang.org/u/Colin_Beckingham)\
**Post date:** [January 4, 2018, 1:40pm UTC](https://discourse.julialang.org/t/warnings-from-mocha-memento-getlogger-addhandler/8127/3 "2018-01-04T13:40:19Z")

</div>

Thanks for this, I could certainly replace the getlogger and a couple of other warnings but this leaves the `remove_handler` where it is not clear what that is replaced with.
