Oakrey.Log
2.0.0
dotnet add package Oakrey.Log --version 2.0.0
NuGet\Install-Package Oakrey.Log -Version 2.0.0
<PackageReference Include="Oakrey.Log" Version="2.0.0" />
<PackageVersion Include="Oakrey.Log" Version="2.0.0" />
<PackageReference Include="Oakrey.Log" />
paket add Oakrey.Log --version 2.0.0
#r "nuget: Oakrey.Log, 2.0.0"
#:package Oakrey.Log@2.0.0
#addin nuget:?package=Oakrey.Log&version=2.0.0
#tool nuget:?package=Oakrey.Log&version=2.0.0
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
- Open your project in Visual Studio.
- Navigate to Tools > NuGet Package Manager > Manage NuGet Packages for Solution....
- Search for
Oakrey.Logand 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
- Author: Oakrey
- Company: Oakrey (Website Link)
- License: MIT
- Repository: Git Repository
- Project URL: Project Website
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 | Versions 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. |
-
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.