# New GenieACS - logger in extensions?

**URL:** <https://forum.genieacs.com/t/new-genieacs-logger-in-extensions/1305>\
**Category:** Uncategorized\
**Created:** [December 22, 2020, 12:17am UTC](https://forum.genieacs.com/t/new-genieacs-logger-in-extensions/1305 "2020-12-22T00:17:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mjducharme](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/mjducharme/32/59_2.png) [@mjducharme](https://forum.genieacs.com/u/mjducharme)\
**Post date:** [December 22, 2020, 12:17am UTC](https://forum.genieacs.com/t/new-genieacs-logger-in-extensions/1305/1 "2020-12-22T00:17:43Z")

</div>

Hello,

How do you require logger in extensions in the new version of GenieACS? The logger.js file no longer exists at the old location.

---

<div class="post-metadata">

**Author:** ![zaidka](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/zaidka/32/9_2.png) [@zaidka](https://forum.genieacs.com/u/zaidka)\
**Post date:** [January 3, 2021, 4:59am UTC](https://forum.genieacs.com/t/new-genieacs-logger-in-extensions/1305/2 "2021-01-03T04:59:26Z")

</div>

You can’t. The file logger.js wasn’t supposed to be required from extension scripts in the first place. Why not use console.log?

---

<div class="post-metadata">

**Author:** ![mjducharme](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/mjducharme/32/59_2.png) [@mjducharme](https://forum.genieacs.com/u/mjducharme)\
**Post date:** [January 3, 2021, 8:06pm UTC](https://forum.genieacs.com/t/new-genieacs-logger-in-extensions/1305/3 "2021-01-03T20:06:10Z")

</div>

I tried console.log, and it doesn’t error out, but I couldn’t figure out where the output is going. It doesn’t seem to be going into the cwmp log anymore at least.

---

<div class="post-metadata">

**Author:** ![zaidka](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/zaidka/32/9_2.png) [@zaidka](https://forum.genieacs.com/u/zaidka)\
**Post date:** [January 5, 2021, 8:18pm UTC](https://forum.genieacs.com/t/new-genieacs-logger-in-extensions/1305/4 "2021-01-05T20:18:00Z")

</div>

You’re right. It goes to stdout of the process which may not be the same as the log output depending on your config. Just committed a fix for that. Both stdout and stderr should now print into the process log (not access log) with the difference being that stdout lines are displayed as an `INFO` log while those from stderr are displayed as a `WARN` log. Let me know what you think.

---

<div class="post-metadata">

**Author:** ![akcoder](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/akcoder/32/11_2.png) [@akcoder](https://forum.genieacs.com/u/akcoder)\
**Post date:** [January 5, 2021, 11:02pm UTC](https://forum.genieacs.com/t/new-genieacs-logger-in-extensions/1305/5 "2021-01-05T23:02:48Z")

</div>

Thank you for addressing this issue. This is why I had included logger in my ext scripts. Which have obviously become very popular 😃.
