Closed unaisvayani closed 2 years ago
Looks like the GCP team just released new libraries with breaking changes for GAX4 with a new underlying GRPC implementation.
https://github.com/googleapis/google-cloud-dotnet/releases/tag/Google.Cloud.Logging.V2-4.0.0
This library references Google.Cloud.Logging.V2
at version 3.6.0
: https://github.com/manigandham/serilog-sinks-googlecloudlogging/blob/632c78de6fb47057611567865cfb9ad3b30adb17/src/Serilog.Sinks.GoogleCloudLogging/Serilog.Sinks.GoogleCloudLogging.csproj#L32
You can set it to that explicitly for now. I'll check on the upgrade issue later.
I referenced version 4.0.0
of Google.Cloud.Logging.V2
and it just worked.
Thanks for the response @manigandham
Version 5.0.0 has been released that uses the new libraries. Support for netstandard2.0
has been dropped.
https://www.nuget.org/packages/Serilog.Sinks.GoogleCloudLogging/5.0.0
https://cloud.google.com/dotnet/docs/reference/help/breaking-gax4
I have an application on .NET 5 using library Serilog.Sinks.GoogleCloudLogging Version="4.0.0" which is the latest version at this moment.
I have my custom logging library where Serilog is implemented to configure multiple sinks. While the logger object is being configured, I get this run time exception in the code below.
Here is the code where the sink is configured
Exception appears:
Am I missing something to make it work?