AgileCoding.Extentions.Logger 2.0.5

There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global AgileCoding.Extentions.Logger --version 2.0.5
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo
dotnet tool install --local AgileCoding.Extentions.Logger --version 2.0.5
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=AgileCoding.Extentions.Logger&version=2.0.5
nuke :add-package AgileCoding.Extentions.Logger --version 2.0.5

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.

This package has no dependencies.

Version Downloads Last updated
2.0.6 319 7/29/2023
2.0.5 209 7/29/2023
1.0.0.4 467 6/28/2021
1.0.0.3 322 5/27/2021
1.0.0.2 320 5/26/2021
1.0.0.1 303 5/26/2021

moving to Core