title: How to set log level in Winston/Node.js
body: <p>I am using Winston logging with my Node.js app and have defined a file transport. Throughout my code, I log using either <code>logger.error</code>, <code>logger.warn</code>, or <code>logger.info</code>.</p>
  
  <p>My question is, how do I specify the log level? Is there a config file and value that I can set so that only the appropriate log messages are logged? For example, I'd like the log level to be "info" in my development environment but "error" in production.</p>