NetModules.Logging.LocalLogging 1.3.8.1

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

NetModules.Logging.LocalLogging

NetModules.Logging.LocalLogging is a NetModules module that handles the built in LoggingEvent and outputs to Console 8f available, as well as logging to local files.

Every loaded Module in a loaded ModuleHost can raise a LoggingEvent either mannually by instantiating and sending it to Host.Handle, or by using the this.Log(severity, arguments) wrapper method.

A Module doesn't need to worry about how logging is handled unless it's a logging Module!

NetModules.Logging.LocalLogging.Events

The NetModules.Logging.LocalLogging module handles and exposes its own events for interacting with console logging and the local log files, these events can be referenced and raised by other modules to read log data.

These events are as follows:

  • LastLine: Returns the last LoggingEvent record in the event otput.
  • ReadLogFile: Returns n lines from the local log file in the event output.
  • SearchLogFile: Returns n lines from the local log file that match a query in the event output.
  • SetLoggingLevel: Allows you to dynamically override the logging level for a selected logger at runtime. This may be useful if you need to read a level urgently.

Getting Started

Installation

To use NetModules.Logging.LocalLogging, add the library to a project where you instantiate a ModuleHost via NuGet Package Manager:

Install-Package NetModules.Logging.LocalLogging

Logging will be automatically enabled when you load the module into your ModuleHost.

To use events from NetModules.Logging.LocalLogging.Events, add the events library as a reference to a Module project via NuGet Package Manager:

Install-Package NetModules.Logging.LocalLogging.Events

You can then instantiate an event and raise it to ModuleHost via your module's this.Host.Handle method for a handling module to process.

Contributing

We welcome contributions! To get involved:

  1. Fork NetModules.Logging.LocalLogging, make improvements, and submit a pull request.
  2. Code will be reviewed upon submission.
  3. Join discussions via the issues board.

This project must always strictly adhere to the NetModules architecture and design pattern!

License

NetModules.Logging.LocalLogging is licensed under the MIT License, allowing unrestricted use, modification, and distribution. If you use NetModules.Logging.LocalLogging in your own project, we’d love to hear about your experience, and possibly feature you on our website!

Full documentation coming soon!

NetModules Foundation

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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.  net10.0 was computed.  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.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.3.8.1 147 5/8/2025
1.3.8 142 5/8/2025