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
<PackageReference Include="Temple.AspNetCore.Logging" Version="1.0.0" />
<PackageVersion Include="Temple.AspNetCore.Logging" Version="1.0.0" />
<PackageReference Include="Temple.AspNetCore.Logging" />
paket add Temple.AspNetCore.Logging --version 1.0.0
#r "nuget: Temple.AspNetCore.Logging, 1.0.0"
#:package Temple.AspNetCore.Logging@1.0.0
#addin nuget:?package=Temple.AspNetCore.Logging&version=1.0.0
#tool nuget:?package=Temple.AspNetCore.Logging&version=1.0.0
Temple.AspNetCore.Logging
Setup
- Add a call to the
AddTemplemethod in theConfigureServicesmethod of your Startup class.services.AddTemple();
- Add a call to the
UseTemplemethod in theConfiguremethod 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 | Versions 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. |
-
net6.0
- Microsoft.AspNetCore.Http.Abstractions (>= 2.2.0)
- Microsoft.AspNetCore.Http.Extensions (>= 2.2.0)
- Microsoft.Extensions.Configuration.Binder (>= 5.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 5.0.0)
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.