Oakrey.Log.Windows
1.0.0
dotnet add package Oakrey.Log.Windows --version 1.0.0
NuGet\Install-Package Oakrey.Log.Windows -Version 1.0.0
<PackageReference Include="Oakrey.Log.Windows" Version="1.0.0" />
<PackageVersion Include="Oakrey.Log.Windows" Version="1.0.0" />
<PackageReference Include="Oakrey.Log.Windows" />
paket add Oakrey.Log.Windows --version 1.0.0
#r "nuget: Oakrey.Log.Windows, 1.0.0"
#addin nuget:?package=Oakrey.Log.Windows&version=1.0.0
#tool nuget:?package=Oakrey.Log.Windows&version=1.0.0
Oakrey.Log.Windows
Overview
The "Log.Windows" project extends the logging framework with Windows-specific features, including integration with the Windows Event Log, WPF-based log visualization, and message box-based logging. It is designed to provide enhanced logging capabilities tailored for Windows desktop applications.
Features
Windows Event Log Integration:
- CriticalWindowsLogger: Logs critical messages to the Windows Event Log.
- ErrorWindowsLogger: Logs error and higher-level messages to the Windows Event Log.
WPF Log Visualization:
- LogView: A WPF user control for displaying log entries with filtering, search, and level-based styling.
- Converters (LogEntryLevelColorConverter, LogEntryLevelDoubleConverter, LogEntryLevelTextConverter) for binding log levels to UI elements.
Message Box Logging:
- MessageBoxLogger: Displays log messages in a message box, with support for different message box icons based on log levels.
WPF-Specific Logger:
- WpfQueueLogger: A thread-safe logger that integrates with the WPF dispatcher for UI updates.
Custom Exceptions:
- MessageBoxException: Represents exceptions displayed in message boxes.
Extensibility:
Provides a foundation for integrating logging into Windows desktop applications with advanced UI and system-level features.
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.Windows
and click Install.
.NET CLI
Run the following command in your terminal:
dotnet add package Oakrey.Log.Windows
Package Manager Console
Run the following command in your Package Manager Console:
Install-Package Oakrey.Log.Windows
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-windows7.0 is compatible. net9.0-windows was computed. |
-
net8.0-windows7.0
- Microsoft.Diagnostics.Runtime (>= 3.1.512801)
- Oakrey.Log (>= 1.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Oakrey.Log.Windows:
Package | Downloads |
---|---|
Oakrey.Applications.Base
"A foundational .NET library for managing application metadata, logging, telemetry, dependency injection, and service preloading, with seamless WPF integration." |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.0 | 189 | 4/16/2025 |