title: how to add callback to logger of winston node module?
body: <p>I am using winston node module(<a href="https://www.npmjs.com/package/winston" rel="nofollow">here</a>). </p>
  
  <pre><code>var path = '/logs/mylog.log'
  var logger = new(winston.Logger)({
    transports: [
      new (winston.transports.Console)(),
      new (winston.transports.File)({ filename: path})
    ]
  });
  </code></pre>
  
  <p>My problem is that, I want to do some coding just after saving this file but i am not getting how can i add the callback function which will execute just after saving log file.
  I tried to do:</p>
  
  <pre><code>var logger = new(winston.Logger)({
    transports: [
      new (winston.transports.Console)(),
      new (winston.transports.File)({ filename: path},function(){
  
      })
    ]
  });
  </code></pre>
  
  <p>but nothing is happening. 
  Can anyone help me?</p>