# Implement a Root-Level Request Logger Middleware - Console Not Logging

**URL:** <https://forum.freecodecamp.org/t/implement-a-root-level-request-logger-middleware-console-not-logging/324195>\
**Category:** Curriculum Help\
**Tags:** javascript\
**Created:** [October 26, 2019, 9:10pm UTC](https://forum.freecodecamp.org/t/implement-a-root-level-request-logger-middleware-console-not-logging/324195 "2019-10-26T21:10:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![blades-x](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/blades-x/32/126685_2.png) [@blades-x](https://forum.freecodecamp.org/u/blades-x)\
**Post date:** [October 26, 2019, 9:10pm UTC](https://forum.freecodecamp.org/t/implement-a-root-level-request-logger-middleware-console-not-logging/324195/1 "2019-10-26T21:10:39Z")

</div>

I am working on this challenge. I passed it already, however I can’t get the console log to actually show the routing. This is the current state of the code. I think it has something to do with way I closed it.

 ![image](https://global.discourse-cdn.com/freecodecamp/original/3X/c/b/cb8bc496cc6977eba7aebdce95fbd88e223d3fdf.png)

This is the current state of the code.

```auto

app.use(function middleware(req, res, next) {
  console.log(req.method + " " + req.path + " - " + req.ip)
  next();
})

```

---

<div class="post-metadata">

**Author:** ![stressstressstress](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/stressstressstress/32/125591_2.png) [@stressstressstress](https://forum.freecodecamp.org/u/stressstressstress)\
**Post date:** [October 26, 2019, 11:56pm UTC](https://forum.freecodecamp.org/t/implement-a-root-level-request-logger-middleware-console-not-logging/324195/2 "2019-10-26T23:56:01Z")

</div>

It should log to the console in glitch. Did you check that? Click “Tools” in the bottom left then “Logs” to display it.

---

<div class="post-metadata">

**Author:** ![blades-x](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/blades-x/32/126685_2.png) [@blades-x](https://forum.freecodecamp.org/u/blades-x)\
**Post date:** [October 27, 2019, 3:13am UTC](https://forum.freecodecamp.org/t/implement-a-root-level-request-logger-middleware-console-not-logging/324195/3 "2019-10-27T03:13:32Z")

</div>

oh, okay. I was looking for it in the console log for the page. Thanks

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [January 25, 2021, 11:56am UTC](https://forum.freecodecamp.org/t/implement-a-root-level-request-logger-middleware-console-not-logging/324195/4 "2021-01-25T11:56:40Z")

</div>

Closed on January 25, 2021, 11:56am UTC


