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
<PackageReference Include="AgileCoding.Extentions.Logger" Version="2.0.6" />
paket add AgileCoding.Extentions.Logger --version 2.0.6
#r "nuget: AgileCoding.Extentions.Logger, 2.0.6"
// 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:
- WriteVerbose - Write verbose log entries.
- WriteInformation - Write informational log entries.
- WriteWarning - Write warning log entries, optionally with an associated Exception.
- WriteError - Write error log entries, optionally with an associated Exception.
- WriteCritical - Write critical log entries, optionally with an associated Exception.
- 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 | 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. |
-
net6.0
- AgileCoding.Library.Enums (>= 2.0.5)
- AgileCoding.Library.Interfaces (>= 2.0.6)
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.
moving to Core