title: ExpressJS morgan log only route request
body: <p>Im using NodeJS web framework Expressjs and one middleware to log requests to a file (morgan).</p>
  
  <p>My conf:</p>
  
  <pre><code>// create a write stream (in append mode)
  var accessLogStream = fs.createWriteStream(__dirname + '/logs/access.log', {flags: 'a'})
  
  // setup the logger
  app.use(logger('short', {stream: accessLogStream}))
  </code></pre>
  
  <p>And my log looks like:</p>
  
  <pre><code>192.168.1.3 - GET /signup HTTP/1.1 304 - - 19.194 ms 
  192.168.1.3 - GET /assets/css/admin/module.admin.stylesheet-complete.sidebar_type.collapse.no_min2.css HTTP/1.1 304 - - 15.500 ms 
  192.168.1.3 - GET /assets/components/library/jquery/jquery.min.js?v=v1.0.3-rc2&amp;amb;sv=v0.0.1.1 HTTP/1.1 304 - - 14.244 ms 
  </code></pre>
  
  <p>Is there some way to ONLY log route request? for example if user enters /signup/:</p>
  
  <pre><code>192.168.1.3 - GET /signup HTTP/1.1 304 - - 19.194 ms
  </code></pre>
  
  <p>and not the assets required for the route.</p>
  
  <p>Thanks in advance.</p>