---
title: Enable Logging from Applications using the Log4Net framework with Nodinite as the target
description: Learn how to enable, configure, and optimize logging from .NET applications using Log4Net and Nodinite. This guide covers prerequisites, installation, log levels, and best practices for actionable monitoring.
---

# Logging from Log4Net Applications

Unlock actionable insights from your .NET applications by enabling logging with <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> and Log4Net. This guide walks you through the essential steps to set up, configure, and optimize logging for your integration solutions. Whether you're a systems integration expert or evaluating <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> for your business, you'll discover how to maximize the value of your logged events.

With this guide, you will:

* ✅ Ensure all prerequisites are in place for a smooth setup  
* ✅ Install and configure the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [Log4Net Appender][] for seamless event logging  
* ✅ Visualize and analyze logged events in the powerful [Log View][Log Views]  
* ✅ Fine-tune your .NET applications for optimal logging results  
* ✅ Empower business users with self-service Log Views and automated monitoring  

Follow these steps to get started:

1. Make sure to first have all [Prerequisites][] in place  
2. [Install][] and [Configure][Configuration] the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [Log4Net Appender][]  
3. Run your .NET application and verify that you receive logged events in the **Administration** [Log View][Log Views]  
4. Tune, improve, and if necessary, add code to your .NET applications for better logging results.  
    <aside aria-label="Tip" class="nodinite-note nodinite-note--tip">
    <p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-lightbulb"></i> Tip</p>
    <div class="nodinite-note__content"><p>If you need to change code, consider using the <a href="https://docs.nodinite.com/core-services/log-api/features/asynchronous-logging/">Asynchronous Logging</a> user guide for best practices.</p></div>
    </aside>
5. Create self-service enabled [Log Views][] for your business users  
6. Configure the [Non Events Agent][] and create [Monitor Views][] with optional [Alarm Plugins][] for proactive monitoring and alerting  

___

## How are log levels evaluated?  

Log4Net provides five primary log levels for logging events:

* <i class="fal fa-bug" aria-hidden="true"></i> **DEBUG**  
* <i class="fal fa-circle-info" aria-hidden="true"></i> **INFO**  
* ⚠️ **WARN**  
* ❌ **ERROR**  
* ❌ **FATAL**  

For advanced scenarios, Log4Net supports additional levels:

```text
//OFF: 2147483647
//EMERGENCY: 120000
//FATAL: 110000
//ALERT: 100000
//CRITICAL: 90000
//SEVERE: 80000
//ERROR: 70000
//WARN: 60000
//NOTICE: 50000
//INFO: 40000
//DEBUG: 30000
//FINE: 30000
//TRACE: 20000
//FINER: 20000
//VERBOSE: 10000
//FINEST: 10000
//ALL: -2147483648
```

<span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> maps Log4Net log levels to status codes for clear, actionable monitoring:

The following [Log Status Codes][] are currently available:

|<i class="fal fa-flag" aria-hidden="true"></i>|Nodinite Status Type|Log4Net Level|Description|
|:---:|---|---|---|
|<i class="fal fa-flag" aria-hidden="true"></i>|None|N/A|Not set or unknown|
|<i class="fal fa-flag" aria-hidden="true"></i>|Information|**DEBUG**</br>**INFO**|Informational message|
|<i class="fal fa-flag" aria-hidden="true"></i>|✅ Success|N/A|Operation succeeded|
|<i class="fal fa-flag" aria-hidden="true"></i>|⚠️ Warning|**WARN**|Used to indicate an unexpected but not invalid state while processing the message|
|<i class="fal fa-flag" aria-hidden="true"></i>|❌ Error|**ERROR**</br>**FATAL**|Used to indicate an error/fatal condition while processing the message|

To learn more about Log4Net, please visit [Log4Net - Apache][].

## <i class="fal fa-hand-point-right" aria-hidden="true"></i> Next Steps

<i class="fal fa-rocket" aria-hidden="true"></i> [Install the Log4Net Appender][Install]  

## <i class="fal fa-link-horizontal" aria-hidden="true"></i> Related Topics

[Alarm Plugins]:https://docs.nodinite.com/administration/settings/alarm-plugins/features/what-is-an-alarm-plugin/
[Asynchronous Logging]:https://docs.nodinite.com/core-services/log-api/features/asynchronous-logging/
[Configuration]:https://docs.nodinite.com/logging-and-monitoring/log4net-appender/getting-started/configuration/
[Install]:https://docs.nodinite.com/logging-and-monitoring/log4net-appender/getting-started/install/
[Log Status Codes]:https://docs.nodinite.com/administration/log-management/log-agents/features/what-is-a-log-status-code/
[Log Views]:https://docs.nodinite.com/administration/log-management/log-views/features/what-is-a-log-view/
[Log4Net - Apache]:https://logging.apache.org/log4net/index.html
[Log4Net Appender]:https://docs.nodinite.com/logging-and-monitoring/log4net-appender/overview/
[Monitor Views]:https://docs.nodinite.com/administration/monitor-management/monitor-views/features/what-is-a-monitor-view/
[Non Events Agent]:https://docs.nodinite.com/logging-and-monitoring/non-events/overview/
[Prerequisites]:https://docs.nodinite.com/logging-and-monitoring/log4net-appender/getting-started/prerequisites/