You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 18, 2022. It is now read-only.
When I issue the .WriteTo.AmazonKinesis, I am getting a System.IO.FileNotFoundException: Could not load file or assembly 'Serilog.FullNetFx, Version=1.5.0.0.
I'm using .NET 4.5.2 and Serilog.Sinks.AmazonKinesis v2.1.97 which I installed via nuget into my Visual Studio solution.
Both the Kinesis stream and the Kinesis client to talk to it are created successfully. Here is the code snippet which is essentially taken from github sample app:
const string streamName = "my-splunk-kinesis";
const int shardCount = 1;
var client = new AmazonKinesisClient(RegionEndpoint.USEast1);
var streamOk = KinesisApi.CreateAndWaitForStreamToBecomeAvailable(
kinesisClient: client,
streamName: streamName,
shardCount: shardCount
);
return new LoggerConfiguration()
.WriteTo.AmazonKinesis(
kinesisClient: client,
streamName: streamName,
period: TimeSpan.FromSeconds(2),
bufferBaseFilename: "./logs/kinesis-buffer"
)
.CreateLogger();