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.
<PackageVersion Include="Temple.AspNetCore.Logging" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Temple.AspNetCore.Logging" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version 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.
#:package Temple.AspNetCore.Logging@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Temple.AspNetCore.Logging&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Temple.AspNetCore.Logging&version=1.0.0
                    
Install as a Cake Tool

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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.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 555 11/10/2021

Initial release.