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

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

  1. Open your project in Visual Studio.
  2. Navigate to Tools > NuGet Package Manager > Manage NuGet Packages for Solution....
  3. 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

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 Compatible and additional computed target framework versions.
.NET net8.0-windows7.0 is compatible.  net9.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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