Oakrey.Log
1.0.0
dotnet add package Oakrey.Log --version 1.0.0
NuGet\Install-Package Oakrey.Log -Version 1.0.0
<PackageReference Include="Oakrey.Log" Version="1.0.0" />
<PackageVersion Include="Oakrey.Log" Version="1.0.0" />
<PackageReference Include="Oakrey.Log" />
paket add Oakrey.Log --version 1.0.0
#r "nuget: Oakrey.Log, 1.0.0"
#addin nuget:?package=Oakrey.Log&version=1.0.0
#tool nuget:?package=Oakrey.Log&version=1.0.0
Oakrey.Log
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.
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.
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.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
Requirements
- .NET 8 or higher
Project Information
- Author: Oakrey
- Company: Oakrey
- License: MIT
- Repository: Git Repository
- Project URL: Project Website
Contributing
Contributions are welcome! Feel free to open issues or submit pull requests to improve the package.
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 | 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. |
-
net8.0
- No dependencies.
NuGet packages (14)
Showing the top 5 NuGet packages that depend on Oakrey.Log:
Package | Downloads |
---|---|
Oakrey.Log.Windows
A Windows-specific extension for the Oakrey logging framework, featuring integration with the Windows Event Log, WPF-based log visualization, and message box-based logging for enhanced desktop application logging. |
|
Oakrey.Applications.ChangeTracking
A .NET library for managing and tracking changes within an application, with support for logging and efficient change application. |
|
Oakrey.Msi
A framework for managing MSI-based application deployments and updates, including automated update checks, silent installations, and deployment configuration for Windows applications |
|
Oakrey.Applications.Git
A .NET library for managing Git repositories programmatically, supporting operations like cloning, committing, and branching, with integrated logging and telemetry. |
|
Oakrey.Applications.Terminals
A .NET library for building terminal-like interfaces, featuring command history, message handling, file export, and integration with logging and telemetry. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.0 | 251 | 4/16/2025 |