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 1,813 10/8/2019
2.1.1 595 10/6/2019
2.1.0 5,315 9/17/2019
2.0.0 28,208 5/24/2019
1.10.0 12,929 4/4/2019
1.9.0 93 4/4/2019
1.7.0 16,959 2/8/2019
1.6.0 136 2/7/2019
1.5.0 10,600 10/5/2018
1.4.7 5,955 9/10/2018
1.4.6 5,830 6/2/2018
1.4.5 951 5/19/2018
1.4.0 224 5/19/2018
1.3.1 2,026 12/16/2017
1.3.0 499 12/8/2017
1.2.0 294 11/30/2017
1.1.0 332 11/28/2017
1.0.0 741 9/6/2017
Show less