# Help finding how logger, Test.adapter.exception and onerror have changed

**URL:** <https://discuss.emberjs.com/t/help-finding-how-logger-test-adapter-exception-and-onerror-have-changed/15991>\
**Category:** Uncategorized\
**Created:** [January 10, 2019, 11:36am UTC](https://discuss.emberjs.com/t/help-finding-how-logger-test-adapter-exception-and-onerror-have-changed/15991 "2019-01-10T11:36:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![samselikoff](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/samselikoff/32/16581_2.png) [@samselikoff](https://discuss.emberjs.com/u/samselikoff)\
**Post date:** [January 10, 2019, 11:36am UTC](https://discuss.emberjs.com/t/help-finding-how-logger-test-adapter-exception-and-onerror-have-changed/15991/1 "2019-01-10T11:36:29Z")

</div>

I’m upgrading an app from 2.18 to 3.4 and I could use some help finding how the following methods have changed:

```auto
Ember.Logger.error
Ember.Test.adapter.exception
Ember.onerror

```

I’m using them to test for asynchronous errors as described in [this article](https://embermap.com/notes/86-testing-mirage-errors-in-your-routes).

So far I’ve found [this code](https://github.com/emberjs/ember.js/blob/f73d8440d19cf86a10c61ddb89d45881acfcf974/packages/%40ember/-internals/console/index.js#L6) which suggests Ember is moving completely to `console.[log/warn/info/error]` functionality, but I haven’t been able to pinpoint any commit/release in the CHANGELOG over when this happened and if it can be safely assumed that all prior uses of Logger/adapter.exception/onerror have been replaced.

Could someone point me in the right direction? Thanks!

---

<div class="post-metadata">

**Author:** ![Panman8201](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/panman8201/32/17727_2.png) [@Panman8201](https://discuss.emberjs.com/u/Panman8201)\
**Post date:** [January 10, 2019, 2:40pm UTC](https://discuss.emberjs.com/t/help-finding-how-logger-test-adapter-exception-and-onerror-have-changed/15991/2 "2019-01-10T14:40:40Z")

</div>

Other than “just use `console.debug()`”, I’m not sure if there was anything else to it.

Initial mention of the deprecation from Tom: [https://github.com/emberjs/rfcs/pull/176#issuecomment-272566327](https://github.com/emberjs/rfcs/pull/176#issuecomment-272566327)

RFC: [rfcs/0297-deprecate-ember-logger.md at b64b6df30483cb7a0ce39dc651d28b30a8b13bc3 · emberjs/rfcs · GitHub](https://github.com/emberjs/rfcs/blob/b64b6df30483cb7a0ce39dc651d28b30a8b13bc3/text/0297-deprecate-ember-logger.md)

Issue to track the removal: [https://github.com/emberjs/ember.js/issues/16231](https://github.com/emberjs/ember.js/issues/16231)

Deprecation guide: [Ember.js - Deprecations](https://emberjs.com/deprecations/v3.x#toc_ember-console-deprecate-logger)

---

<div class="post-metadata">

**Author:** ![rwjblue](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/rwjblue/32/9411_2.png) [@rwjblue](https://discuss.emberjs.com/u/rwjblue)\
**Post date:** [January 15, 2019, 1:39am UTC](https://discuss.emberjs.com/t/help-finding-how-logger-test-adapter-exception-and-onerror-have-changed/15991/3 "2019-01-15T01:39:05Z")

</div>

Can you provide an example test? I’m sure we can make it work well, but for me its always better to focus on a specific reproduction rather than talk about generalities…

---

<div class="post-metadata">

**Author:** ![samselikoff](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/samselikoff/32/16581_2.png) [@samselikoff](https://discuss.emberjs.com/u/samselikoff)\
**Post date:** [January 15, 2019, 2:57pm UTC](https://discuss.emberjs.com/t/help-finding-how-logger-test-adapter-exception-and-onerror-have-changed/15991/4 "2019-01-15T14:57:40Z")

</div>

@rwjblue I was using [this code](https://gist.github.com/samselikoff/91e60ea6c568679bfd34dd23dbb41b1c) to test async errors in my tests. I’m not sure which (if any) of lines 9-11 I need anymore.
