title: Is there an equivalent of log.IsDebugEnabled in Winston?
body: <p>Is there an equivalent of <code>log.IsDebugEnabled</code> in Winston?</p>
  
  <p>I want to use this to skip expensive logging code in a production environment but have it execute in development.</p>
  
  <p>For example:</p>
  
  <pre><code>if(winston.isDebugEnabled){
     // Call to expensive dump routine here
     dump();
  }
  </code></pre>
  
  <p>Checking <code>winston.debug</code> just checks whether the method is defined, not whether it is enabled.</p>
  
  <p>Many thanks!</p>
  
  <hr>
  
  <p>Edit: Added code example.</p>