APF.Core.Logger
8.0.0.14
dotnet add package APF.Core.Logger --version 8.0.0.14
NuGet\Install-Package APF.Core.Logger -Version 8.0.0.14
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="APF.Core.Logger" Version="8.0.0.14" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="APF.Core.Logger" Version="8.0.0.14" />
<PackageReference Include="APF.Core.Logger" />
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 APF.Core.Logger --version 8.0.0.14
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: APF.Core.Logger, 8.0.0.14"
#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 APF.Core.Logger@8.0.0.14
#: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=APF.Core.Logger&version=8.0.0.14
#tool nuget:?package=APF.Core.Logger&version=8.0.0.14
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Steps to integrate Loggly logger in .NET Backend
If the project is Handler:
- Add package reference of latest APF.Core.Logger package to the project.
- Function.cs file: Add below two lines to configure the logger:
This code will configure the logger with given log name as its source.var logName = Environment.GetEnvironmentVariable("CORE_ENVIRONMENT") + "-" + System.Reflection.Assembly.GetExecutingAssembly().GetName().Name.ToLower(); serviceCollection.AddScoped<ICustomLoggerService>(provider => new CustomLoggerService(_configuration, logName)); </code> - Now in Handler’s constructor, pass the dependency of ICustomLogger interface.
- Go to loggly and create source group with above tag using below steps:
- Login to loggly and go to Logs menu ⇒ Source Setup ⇒ Open ‘Source Groups’ tab.
- Click Add New ⇒ Give Name, desc & ensure to add Tag same as one we pass in code above (logname). ⇒ Save.
- Now on Logs ⇒ Log Explorer we can filter using this tag.
If the project is API project:
- Add package reference of latest APF.Core.Logger package to the project.
- Startup.cs file: Add below two lines to configure the logger:
This code will configure the logger with given log name as its source.var logName = Environment.GetEnvironmentVariable("CORE_ENVIRONMENT") + "-" + System.Reflection.Assembly.GetExecutingAssembly().GetName().Name.ToLower(); serviceCollection.AddScoped<ICustomLoggerService>(provider => new CustomLoggerService(_configuration, logName)); </code> - Now in controller’s constructor, pass the dependency of ICustomLogger interface.
- Next steps are same as handler project.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. 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.
-
net8.0
- Amazon.Lambda.Core (>= 2.2.0)
- AppFact.SerilogOpenSearchSink (>= 0.0.8)
- Serilog.AspNetCore (>= 8.0.2)
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 |
|---|---|---|
| 8.0.0.14 | 414 | 10/14/2025 |
| 8.0.0.14-Beta-01 | 848 | 10/14/2025 |
| 8.0.0.13 | 281 | 9/29/2025 |
| 8.0.0.13-Beta-06 | 303 | 9/11/2025 |
| 8.0.0.13-Beta-05 | 175 | 9/10/2025 |
| 8.0.0.13-Beta-04 | 226 | 9/4/2025 |
| 8.0.0.13-Beta-03 | 238 | 8/29/2025 |
| 8.0.0.13-Beta-02 | 349 | 8/25/2025 |
| 8.0.0.13-Beta-01 | 218 | 8/21/2025 |
| 8.0.0.12 | 363 | 8/18/2025 |
| 8.0.0.12-beta-migration | 193 | 6/24/2025 |
| 8.0.0.12-Beta-01 | 399 | 8/14/2025 |
| 8.0.0.3 | 454 | 5/27/2025 |
| 8.0.0.3-migration | 194 | 6/24/2025 |
| 8.0.0.3-Beta-01 | 629 | 7/22/2025 |
| 8.0.0.2 | 425 | 4/16/2025 |
| 8.0.0.2-Beta-04 | 235 | 5/23/2025 |
| 8.0.0.2-Beta-03 | 156 | 2/25/2025 |
| 8.0.0.2-Beta-02 | 155 | 2/21/2025 |
| 8.0.0.2-Beta-01 | 1,231 | 11/19/2024 |
Loading failed
# Changelog
## 8.0.0.14 - 2025-10-14
- Added Http Request Response Logging Middleware