Uninstalling the Nodinite Log4Net Appender
Section titled “ Uninstalling the Nodinite Log4Net Appender”This guide walks you through the safe and complete removal of the Nodinite Log4Net Appender NuGet package from your .NET Framework project. Whether you are migrating to a different logging solution, upgrading to Serilog, or troubleshooting, follow these steps to ensure a clean uninstallation.
With this guide, you will:
- ✅ Remove the NuGet package and all dependencies safely
- ✅ Clean up configuration files properly
- ✅ Prevent orphaned resources in Monitor Views
- ✅ Minimize downtime and ensure rollback options
Before You Begin
Section titled “ Before You Begin”Uninstall Guide
Section titled “Uninstall Guide”Follow these steps to uninstall the Nodinite Log4Net Appender:
Step 1: Remove Monitor View Resources (If Applicable)
Section titled “ Step 1: Remove Monitor View Resources (If Applicable)”If you have created Monitor Views that reference the Log4Net Appender, specifically for Non-Events monitoring:
- Log in to the Nodinite Web Client
- Navigate to Administration > Monitor Management > Monitor Views
- Locate any Monitor Views using the Log4Net Appender for Non-Events monitoring
- Remove or update the Resources that reference this appender
- Save your changes
This step prevents errors and orphaned references after the appender is removed.
Step 2: Remove NuGet Package
Section titled “ Step 2: Remove NuGet Package”Choose one of the following methods to uninstall the NuGet package:
Option A: Visual Studio NuGet Package Manager (GUI)
Section titled “Option A: Visual Studio NuGet Package Manager (GUI)”- Open your .NET Framework project in Visual Studio
- Right-click on the project in Solution Explorer
- Select Manage NuGet Packages...
- Click the Installed tab
- Search for
Nodinite.LogAgent.Log4NetAppender - Select the package and click Uninstall
- Confirm the uninstallation when prompted
Option B: Package Manager Console
Section titled “Option B: Package Manager Console”- Open Visual Studio
- Go to Tools > NuGet Package Manager > Package Manager Console
- Run the following command:
Uninstall-Package Nodinite.LogAgent.Log4NetAppenderOption C: .NET CLI
Section titled “Option C: .NET CLI”Open a command prompt or terminal in your project directory and run:
dotnet remove package Nodinite.LogAgent.Log4NetAppenderStep 3: Remove Configuration
Section titled “ Step 3: Remove Configuration”Remove the Nodinite appender configuration from your log4net.config, app.config, or web.config file:
- Open your configuration file in Visual Studio or a text editor
- Locate the
<appender>element withtype="Nodinite.LogAgent.Log4NetAppender.NodiniteLog4NetAppender,Nodinite.LogAgent.Log4NetAppender" - Remove the entire
<appender>element - Remove the
<appender-ref>reference from the<root>or<logger>element
Example: Before
Section titled “Example: Before”<log4net> <appender name="NodiniteLog4NetAppender" type="Nodinite.LogAgent.Log4NetAppender.NodiniteLog4NetAppender,Nodinite.LogAgent.Log4NetAppender"> <!-- Configuration parameters --> </appender> <root> <level value="INFO"/> <appender-ref ref="NodiniteLog4NetAppender"/> </root></log4net>Example: After
Section titled “Example: After”<log4net> <root> <level value="INFO"/> </root></log4net>Step 4: Remove Unused Dependencies (Optional)
Section titled “ Step 4: Remove Unused Dependencies (Optional)”The NuGet package manager typically removes unused dependencies automatically. However, if other packages in your project use the same dependencies, they will remain installed.
To check for unused packages:
- Right-click on the project in Solution Explorer
- Select Manage NuGet Packages...
- Review the Installed tab for packages like:
IBSS.Libraries.Contracts.LogRestApi- Any other dependencies that are no longer needed
Step 5: Rebuild and Test
Section titled “ Step 5: Rebuild and Test”- Rebuild your solution in Visual Studio (
Build>Rebuild Solution) - Test your application to ensure it runs correctly without the Log4Net Appender
- Verify that no errors appear related to missing Nodinite references
Rollback
Section titled “ Rollback”If you need to rollback after uninstalling, simply reinstall the NuGet package:
Install-Package Nodinite.LogAgent.Log4NetAppenderThen restore your configuration from the backup you created in Step 1.
What Happens to Existing Data?
Section titled “ What Happens to Existing Data?”Log Data
Section titled “Log Data”After uninstalling:
- No new log events will be sent to Nodinite from your application
- Existing log data persists in Log Views until removed by retention policies or manual deletion by administrators
- Retention policies will eventually remove old log data according to configured schedules
MessageTypes
Section titled “MessageTypes”Support
Section titled “ Support”If you need help to uninstall, contact Support.