AgileCoding.Extentions.Logger 2.0.6

dotnet add package AgileCoding.Extentions.Logger --version 2.0.6                
NuGet\Install-Package AgileCoding.Extentions.Logger -Version 2.0.6                
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="AgileCoding.Extentions.Logger" Version="2.0.6" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add AgileCoding.Extentions.Logger --version 2.0.6                
#r "nuget: AgileCoding.Extentions.Logger, 2.0.6"                
#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 AgileCoding.Extentions.Logger as a Cake Addin
#addin nuget:?package=AgileCoding.Extentions.Logger&version=2.0.6

// Install AgileCoding.Extentions.Logger as a Cake Tool
#tool nuget:?package=AgileCoding.Extentions.Logger&version=2.0.6                

AgileCoding.Extentions.Loggers NuGet Package

The AgileCoding.Extentions.Loggers package provides extension methods to enhance logger behavior. These extension methods add convenience and make it easy to write logs of various types.

Features

This package offers extension methods for the ILogger interface from the AgileCoding.Library.Interfaces package:

  1. WriteVerbose - Write verbose log entries.
  2. WriteInformation - Write informational log entries.
  3. WriteWarning - Write warning log entries, optionally with an associated Exception.
  4. WriteError - Write error log entries, optionally with an associated Exception.
  5. WriteCritical - Write critical log entries, optionally with an associated Exception.
  6. IsEnabled - Check if the logger is enabled for a given event type.

How to Use

To use these extension methods in your project, first install the package. Then, create an instance of a class that implements the ILogger interface, and call the extension methods on it.

Here's an example of how you might use the WriteInformation method:

using AgileCoding.Library.Interfaces.Logging;
using AgileCoding.Extentions.Loggers;

public class MyClass
{
    private ILogger _logger;

    public MyClass(ILogger logger)
    {
        _logger = logger;
    }

    public void DoSomething()
    {
        // Some code...

        _logger.WriteInformation(0, "Did something");

        // More code...
    }
}

Installation

You can install this NuGet package through the following ways:

  • Package Manager: "PM> Install-Package AgileCoding.Extentions.Loggers -Version 2.0.5"
  • .NET CLI: "dotnet add package AgileCoding.Extentions.Loggers --version 2.0.5"

Requirements

.NET 6.0 or later

Contribute

This is an open source project. We encourage you to contribute to it by submitting issues, or directly contributing code.

License

This project is licensed under the terms of the MIT license.

Contact

For questions or any other feedback, please open an issue in the GitHub repository.

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 (1)

Showing the top 1 NuGet packages that depend on AgileCoding.Extentions.Logger:

Package Downloads
AgileCoding.Extentions.Activator

Extentions to enhance Activator beharvior

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.0.6 423 7/29/2023
2.0.5 239 7/29/2023
1.0.0.4 525 6/28/2021
1.0.0.3 351 5/27/2021
1.0.0.2 352 5/26/2021
1.0.0.1 333 5/26/2021

moving to Core