APF.Core.Logger 8.0.0.2-Beta-01

This is a prerelease version of APF.Core.Logger.
There is a newer version of this package available.
See the version list below for details.
dotnet add package APF.Core.Logger --version 8.0.0.2-Beta-01
                    
NuGet\Install-Package APF.Core.Logger -Version 8.0.0.2-Beta-01
                    
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.2-Beta-01" />
                    
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.2-Beta-01" />
                    
Directory.Packages.props
<PackageReference Include="APF.Core.Logger" />
                    
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 APF.Core.Logger --version 8.0.0.2-Beta-01
                    
#r "nuget: APF.Core.Logger, 8.0.0.2-Beta-01"
                    
#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.
#addin nuget:?package=APF.Core.Logger&version=8.0.0.2-Beta-01&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=APF.Core.Logger&version=8.0.0.2-Beta-01&prerelease
                    
Install as a Cake Tool

Steps to integrate Loggly logger in .NET Backend

If the project is Handler:

  1. Add package reference of latest APF.Core.Logger package to the project.
  2. Function.cs file: Add below two lines to configure the logger:
    var logName = Environment.GetEnvironmentVariable("CORE_ENVIRONMENT") + "-" + System.Reflection.Assembly.GetExecutingAssembly().GetName().Name.ToLower();
    serviceCollection.AddScoped<ICustomLoggerService>(provider => new CustomLoggerService(_configuration, logName)); </code>
    
    This code will configure the logger with given log name as its source.
  3. Now in Handler’s constructor, pass the dependency of ICustomLogger interface.
  4. 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:

  1. Add package reference of latest APF.Core.Logger package to the project.
  2. Startup.cs file: Add below two lines to configure the logger:
    var logName = Environment.GetEnvironmentVariable("CORE_ENVIRONMENT") + "-" + System.Reflection.Assembly.GetExecutingAssembly().GetName().Name.ToLower();
    serviceCollection.AddScoped<ICustomLoggerService>(provider => new CustomLoggerService(_configuration, logName)); </code>
    
    This code will configure the logger with given log name as its source.
  3. Now in controller’s constructor, pass the dependency of ICustomLogger interface.
  4. Next steps are same as handler project.
Product 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.

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.12-beta-migration 125 6/24/2025
8.0.0.3 305 5/27/2025
8.0.0.3-migration 127 6/24/2025
8.0.0.2 369 4/16/2025
8.0.0.2-Beta-04 147 5/23/2025
8.0.0.2-Beta-03 87 2/25/2025
8.0.0.2-Beta-02 91 2/21/2025
8.0.0.2-Beta-01 485 11/19/2024
8.0.0.1 767 10/14/2024
8.0.0.1-Beta-02 107 10/13/2024
8.0.0.1-Beta-01 112 9/9/2024
6.0.0.8-Beta-03 210 10/4/2024
6.0.0.8-Beta-02 86 10/4/2024
6.0.0.8-Beta-01 135 8/21/2024
6.0.0.7 285 7/29/2024
6.0.0.6 136 7/10/2024
6.0.0.5 118 7/10/2024
6.0.0.4 212 7/9/2024
6.0.0.3 142 7/8/2024
6.0.0.2 174 6/27/2024
6.0.0.1 128 6/25/2024
6.0.0 581 5/22/2024

# Changelog

## 8.0.0.2-Beta-01 - 2024-11-18

- Added CorrelationId