Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Stackdriver Logging Sample

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.

Links

Build and Run

  1. Follow the set-up instructions in the documentation.

  2. Edit Program.cs, and replace YOUR-PROJECT-ID with id of the project you created in step 1.

  3. 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

Contributing changes

Licensing