logwrangler-http

Logwrangler http adapter

Usage no npm install needed!

<script type="module">
  import logwranglerHttp from 'https://cdn.skypack.dev/logwrangler-http';
</script>

README

Install

npm install --save logwrangler logwrangler-http

Use

var logwrangler = require('logwrangler');
var logwranglerHttp = require('logwrangler-http');

var logger = logwrangler.create();

logger.use(new logwranglerHttp({
    host: 'localhost',
    port: 80,
    secure: false, 			// optional
    headers: {} 			// optional
    batchSize: 5 			// optional - by default, logs will be batched together to save on requests
}))