Added batchsize to WriteToTcp
This commit is contained in:
@@ -338,6 +338,7 @@ public sealed class LogBuilder
|
|||||||
public LogBuilder WriteToTcp(
|
public LogBuilder WriteToTcp(
|
||||||
string host,
|
string host,
|
||||||
int port,
|
int port,
|
||||||
|
int batchSize = 1,
|
||||||
LogLevel minimumLevel = LogLevel.Trace,
|
LogLevel minimumLevel = LogLevel.Trace,
|
||||||
BackpressureStrategy backpressureStrategy = BackpressureStrategy.Wait,
|
BackpressureStrategy backpressureStrategy = BackpressureStrategy.Wait,
|
||||||
bool useTls = false,
|
bool useTls = false,
|
||||||
@@ -357,6 +358,7 @@ public sealed class LogBuilder
|
|||||||
_flows.Add(new TcpFlow(
|
_flows.Add(new TcpFlow(
|
||||||
host,
|
host,
|
||||||
port,
|
port,
|
||||||
|
batchSize,
|
||||||
minimumLevel,
|
minimumLevel,
|
||||||
backpressureStrategy,
|
backpressureStrategy,
|
||||||
useTls,
|
useTls,
|
||||||
|
|||||||
Reference in New Issue
Block a user