Serilog.Sinks.GoogleCloudLogging 1.1.0

Serilog sink that writes events to Google Cloud Platform Stackdriver Logging.

There is a newer version of this package available.
See the version list below for details.
Install-Package Serilog.Sinks.GoogleCloudLogging -Version 1.1.0
dotnet add package Serilog.Sinks.GoogleCloudLogging --version 1.1.0
<PackageReference Include="Serilog.Sinks.GoogleCloudLogging" Version="1.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Serilog.Sinks.GoogleCloudLogging --version 1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Configure logger:

var log = new LoggerConfiguration()
    .WriteTo.GoogleCloudLogging(new GoogleCloudLoggingSinkOptions("YOUR_PROJECT_ID"))
    .CreateLogger();

Sink options:

ProjectId - Required - Google Cloud project ID where logs will be sent to.
ResourceType - Resource type for logs. Must be one of the supported types listed in the cloud logging documentation. Default is "global".
LogName - Name of log under the resource type. Will automatically use SourceContext from Serilog events or fallback to this setting. Default is "Default".
Labels - Dictionary of string keys and values added to all logs. Individual log entries will automatically include Properties from Serilog events.

When using default options, logs will appear under these filter settings in the GCP Console:

Configure logger:

var log = new LoggerConfiguration()
    .WriteTo.GoogleCloudLogging(new GoogleCloudLoggingSinkOptions("YOUR_PROJECT_ID"))
    .CreateLogger();

Sink options:

ProjectId - Required - Google Cloud project ID where logs will be sent to.
ResourceType - Resource type for logs. Must be one of the supported types listed in the cloud logging documentation. Default is "global".
LogName - Name of log under the resource type. Will automatically use SourceContext from Serilog events or fallback to this setting. Default is "Default".
Labels - Dictionary of string keys and values added to all logs. Individual log entries will automatically include Properties from Serilog events.

When using default options, logs will appear under these filter settings in the GCP Console:

Release Notes

- Fixed handling of log entry properties that contain child properties.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
2.2.0 403 10/8/2019
2.1.1 169 10/6/2019
2.1.0 2,152 9/17/2019
2.0.0 25,606 5/24/2019
1.10.0 12,358 4/4/2019
1.9.0 91 4/4/2019
1.7.0 16,539 2/8/2019
1.6.0 134 2/7/2019
1.5.0 10,211 10/5/2018
1.4.7 5,853 9/10/2018
1.4.6 5,670 6/2/2018
1.4.5 939 5/19/2018
1.4.0 222 5/19/2018
1.3.1 2,023 12/16/2017
1.3.0 497 12/8/2017
1.2.0 292 11/30/2017
1.1.0 324 11/28/2017
1.0.0 738 9/6/2017
Show less