I am learning Azure Function Apps. My function app is a timer trigger that writes logs to datadog. The issue I am facing is related to the version incompatibility.
The below works (I can see logs on Datadog):
<PackageReference Include="Serilog" Version="2.9.0" />
<PackageReference Include="Serilog.Sinks.Datadog.Logs" Version="0.2.0" />
However, I want to use the latest packages and the following does not work:
<PackageReference Include="Serilog" Version="4.2.0" />
<PackageReference Include="Serilog.Sinks.Datadog.Logs" Version="0.5.4" />
Serilog.Sinks.Datadog.Logs version 0.5.4 should be compatible with Serilog >= 2.9.0, and Serilog.Sinks.PeriodicBatching is a transitive dependency for which the correct version is installed.
I can play around with lower versions of Serilog (>= 2.9.0, <4.2.0) to find the right fit for Serilog.Sinks.Datadog.Logs 0.5.4 and vice-versa.
Can someone tell me what should be my next steps?


Serilog 4.2.0?