A sample demonstrating how to invoke Google Cloud Stackdriver Logging from C# using ASP.NET Core.
This sample requires .NET Core 2.0 or later. That means using Visual Studio 2017, or the command line. Visual Studio 2015 users can use this older sample.
-
Follow the set-up instructions in the documentation.
-
Edit
Program.cs
, and replace YOUR-PROJECT-ID with id of the project you created in step 1. -
From a Powershell command line, run the Logging sample to see a list of subcommands:
PS C:\...\dotnet-docs-samples\logging\api\LoggingSample> dotnet run Usage: dotnet run create-log-entry log-id new-log-entry-text dotnet run list-log-entries log-id dotnet run create-sink sink-id log-id dotnet run list-sinks dotnet run update-sink sink-id log-id dotnet run delete-log log-id dotnet run delete-sink sink-id
- See CONTRIBUTING.md
- See LICENSE