Prod42Net.Logger 1.0.2

dotnet add package Prod42Net.Logger --version 1.0.2
                    
NuGet\Install-Package Prod42Net.Logger -Version 1.0.2
                    
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="Prod42Net.Logger" Version="1.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Prod42Net.Logger" Version="1.0.2" />
                    
Directory.Packages.props
<PackageReference Include="Prod42Net.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 Prod42Net.Logger --version 1.0.2
                    
#r "nuget: Prod42Net.Logger, 1.0.2"
                    
#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 Prod42Net.Logger@1.0.2
                    
#: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=Prod42Net.Logger&version=1.0.2
                    
Install as a Cake Addin
#tool nuget:?package=Prod42Net.Logger&version=1.0.2
                    
Install as a Cake Tool

Just another Logger for dotnet.

Easy to use and highly extendable.

Feel free to use it if you like it.

P42Logger: A Logger Library for .NET

The P42Logger library is a flexible and extendable logging utility designed with the .NET environment in mind. With this library, you can easily manage logging activities in your applications, control logging levels, and direct logs to different output destinations via log queues.

Key Features

  • Queue-Based Logging: P42Logger utilizes a queue-based system (List<IP42LogQueue>), allowing you to route logging output to different destinations easily.

  • Flexible Logging Levels: The library lets you control the granularity of your logging by allowing you to set different logging levels.

  • Extendibility: P42Logger uses the IP42LogQueue interface, which means you can implement your own log queue classes to customize the logging process.

Class Overview and Usage

P42Logger Class

Here is a basic rundown on how to use the P42Logger class.

// Import necessary namespaces using P42Log; using P42Log.Interfaces;

// Creation of logger instance (with default queue) P42Logger logger = new P42Logger();

// Adding a log entry logger.Log("Info", "This is an informational message");

// Setting log level logger.SetLogLevel("Warn");

// Adding a custom log queue logger.AddLogQueue(new MyCustomQueue());

In the example: An instance of P42Logger is created with the default log queue. A log entry is added with an "Info" log level and a message. The log level for all log queues is set to "Warn". A custom log queue (MyCustomQueue) is added to the logger.

Conclusion P42Logger is a simple yet powerful library that allows you to manage your application's logging activities effectively. Its extendable design enables you to create custom logging schemes to suit your needs. Feel free to use and extend it as you see fit!

Note: Make sure to refer to the API documentation for full details on classes, interfaces, and their methods. This overview may not cover all available methods or functionality of the library.

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.
  • net8.0

    • No dependencies.

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
1.0.2 237 2/25/2024
1.0.1 211 2/15/2024
1.0.0 166 2/15/2024

Filelogger improvements