title: Nodejs fluentd logger
body: <p>I am using the nodejs - fluentd logger (<a href="https://github.com/fluent/fluent-logger-node" rel="nofollow noreferrer">https://github.com/fluent/fluent-logger-node</a>) and I use the following configuration as specified in this link.</p>
  
  <pre><code>var winston = require('winston');
  var config = {
    host: 'localhost',
    port: 24224,
    timeout: 3.0,
    requireAckResponse: false // Add this option to wait response from Fluentd certainly
  };
  var fluentTransport = require('fluent-logger').support.winstonTransport();
  var logger = new (winston.Logger)({
      transports: [new fluentTransport('mytag', config), new (winston.transports.Console)()]
  });
  </code></pre>
  
  <p><strong>requireAckResponse</strong> - I use this flag and it shows that it won't wait for the fluentd response but will it wait till the log data is written to the fluentd log file? </p>
  
  <p>1) When exactly the response will be returned from fluentd for log write? 
  2) What are the advantages and dis-advantages of using this ?</p>
  
  <p>Thanks,<br>
  Harry </p>