Temple.AspNetCore.Logging 1.0.0

dotnet add package Temple.AspNetCore.Logging --version 1.0.0
NuGet\Install-Package Temple.AspNetCore.Logging -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Temple.AspNetCore.Logging" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Temple.AspNetCore.Logging --version 1.0.0
#r "nuget: Temple.AspNetCore.Logging, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Temple.AspNetCore.Logging as a Cake Addin
#addin nuget:?package=Temple.AspNetCore.Logging&version=1.0.0

// Install Temple.AspNetCore.Logging as a Cake Tool
#tool nuget:?package=Temple.AspNetCore.Logging&version=1.0.0

Temple.AspNetCore.Logging

Setup

  1. Add a call to the AddTemple method in the ConfigureServices method of your Startup class.

    services.AddTemple();

  2. Add a call to the UseTemple method in the Configure method of your Startup class.

    app.UseTemple();

Voilà! Now you only need to configure the connection string and you're done.

Configuration

You can configure the connection in 3 different ways.

Environment Variable

This is the preferred method since the connection string won't appear in the source code of your application. It can then be configured in your server, environment or CI/CD pipeline. Simply at it to the TEMPLE_CONNECTION_STRING variable. You can learn how to setup an environment variable related to your environment with a quick Google search.

Configuration

In the appsettings.json file of your project, simply add the Temple section with the nested property ConnectionString that will contain your connection string.

{
  "Temple": {
    "ConnectionString": "<YOUR_TEMPLE_CONNECTION_STRING>"
  }
}

AddTemple

If none of the methods above work for you, you can simply pass the connection as the first argument of the AddTemple method.

services.AddTemple("<YOUR_TEMPLE_CONNECTION_STRING>");

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0 319 11/10/2021

Initial release.