title: logging to stackdriver from winston
body: <p>I am using the library <a href="https://www.npmjs.com/package/@google-cloud/logging-winston" rel="nofollow noreferrer">here</a> to log to Stackdriver from Node.js.
  However, the logs aren't showing up - I think because I'm not specifying a metadata resource, such as '<a href="https://cloud.google.com/logging/docs/reference/libraries" rel="nofollow noreferrer">global</a>'.  How do I do that?</p>
  
  <pre><code>var winston = require('winston');
  var transport = require('@google-cloud/logging-winston');
  
  winston.add(transport, {
    projectId: 'myproject',
    keyFilename: 'google_key.json',
    level: 'warn' // log at 'warn' and above 
  });
  
  winston.error('warp nacelles offline');
  </code></pre>