Oakrey.Log 2.0.0

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

Oakrey.Log

1. Overview

The "Log" project provides a comprehensive logging framework for .NET applications. It supports multiple logging mechanisms, including console, file, debug, and custom loggers, with a focus on flexibility, extensibility, and performance.

2. Features

Logging Levels:

  • Supports standard logging levels: Trace, Debug, Information, Warning, Error, and Critical (Level enum).

Logger Implementations:

  • ConsoleLogger: Logs messages to the console with color-coded levels.
  • FileLogger: Logs messages to a file with thread-safe operations.
  • DebugLogger: Logs messages to the debug output.
  • CriticalEventLogger: Triggers events for critical log levels.
  • QueueLogger: Maintains a queue of log entries with a fixed capacity.
  • TypeMatchLogger: Handles events based on argument type matching.

Logger Management:

  • LoggerFactory: Manages logger instances, global thresholds, and module-specific filters.
  • LoggerProxy: Provides a proxy for logging with module-specific context.

Log Entry Representation:

  • LogEntry: Represents a single log entry with level, module, message, and timestamp.

Utilities:

  • LoggerHelper: Provides helper methods for formatting log levels and messages.
  • ExceptionsHandling: Flattens exception messages for better readability.

Extensibility:

  • LoggerBase: Abstract base class for custom logger implementations.
  • ILoggerEngine: Interface for logger engines.

3. Installation

You can install the package via NuGet Package Manager, Package Manager Console or the .NET CLI.

NuGet Package Manager

  1. Open your project in Visual Studio.
  2. Navigate to Tools > NuGet Package Manager > Manage NuGet Packages for Solution....
  3. Search for Oakrey.Log and click Install.

.NET CLI

Run the following command in your terminal:

dotnet add package Oakrey.Log

Package Manager Console

Run the following command in your Package Manager Console:

Install-Package Oakrey.Log

4. Requirements

  • .NET 8 or higher

5. Project Information

6. Contributing

Contributions are welcome! Feel free to open issues or submit pull requests to improve the package.

7. License

This project is licensed under the MIT License. See the LICENSE file for details.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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.
  • net10.0

    • No dependencies.

NuGet packages (21)

Showing the top 5 NuGet packages that depend on Oakrey.Log:

Package Downloads
Oakrey.Applications.Settings

WPF-only (.NET 10 Windows) library providing ISettingsService with persistent and volatile typed key-value settings, SettingsBase for bindable ViewModelBase-derived settings classes, CallerMemberName key inference, built-in window bounds restore via RestoreBounds, and a one-call ConfigureSettingService DI extension.

Oakrey.Applications.UI

WPF UI library providing a DarkWindow base class with native DWM Mica and Acrylic backdrops, a TabbedWindow with animated page transitions and Windows light/dark theme detection, a notification bar service, and severity-typed message box and prompt dialogs.

Oakrey.Applications.Files

Provides IFileService with synchronous and asynchronous file and directory operations including CRUD, stream access, and age-based deletion, with built-in logging and OpenTelemetry tracing.

Oakrey.AT

Project AT is a .NET library for interacting with AT command-based devices. It provides a rich set of features for audio control, call management, SMS handling, phonebook operations, and eCall support. Designed for extensibility and ease of use, it is a tool for developers working on telecommunication and IoT applications.

Oakrey.Applications.Terminals

A WPF/MVVM .NET library for building terminal-like interfaces. Provides a generic TerminalViewModel base with reactive message collections (System.Reactive), navigable command history, sort and display settings, file export, and built-in Oakrey.Log and Oakrey.Telemetry integration.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.0 865 11/13/2025
1.0.1 365 9/26/2025
1.0.0 875 4/16/2025