HttpSink constructor
HttpSink({})
Implementation
HttpSink({
required this.endpoint,
this.method = 'POST',
this.headers = const <String, String>{},
LogFormatter? formatter,
this.batchSize = 10,
this.batchTimeout = const Duration(seconds: 30),
this.maxRetries = 3,
this.retryDelay = const Duration(seconds: 1),
}) : _formatter = formatter ?? const JsonFormatter() {
_startBatchTimer();
}