---
title: Enable Logging and ultimately Monitoring from your IIS and custom applications hosing WCF services with Nodinite as target
description: Learn how to configure and enable the Nodinite WCF Diagnostics tracing feature that provides end to end tracking including your WCF Applications.
---

# Logging with the  WCF Diagnostics tracing feature

In your environment you may have multiple WCF Applications running in [IIS][] on different servers. This means you may end up having tons of files to search. You may have different developers having enabled or tuned logging differently due to lack of governance. With <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> you get total control and a foundation for governance and an active documentation using our [Repository Model][].
With <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> you can **centralize logging** and manage/share insights from logged events.

<aside aria-label="Important" class="nodinite-note nodinite-note--important">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-message-exclamation"></i> Important</p>
<div class="nodinite-note__content"><p><strong>Configure <a href="https://docs.nodinite.com/repository-model/message-types/overview/">Message Types</a> for business intelligence</strong></p><p>When implementing <a href="https://docs.nodinite.com/logging-and-monitoring/wcf-diagnostics-tracing/overview/">WCF Diagnostics Tracing</a>, you must configure <a href="https://docs.nodinite.com/repository-model/message-types/overview/">Message Types</a> using the <strong>DefaultMessageType</strong> and <strong>MessageTypeFromBody</strong> properties in your WCF application's configuration file. Without Message Types configured:</p><ol>
<li><strong><a href="https://docs.nodinite.com/administration/log-management/search-fields/features/what-is-a-search-field/">Search Field Expressions</a> cannot extract business data</strong> - Order IDs, Customer Numbers, and Invoice Numbers from WCF messages won't be searchable</li>
<li><strong><a href="https://docs.nodinite.com/administration/log-management/log-views/features/what-is-a-log-view/">Log Views</a> cannot provide self-service</strong> - Business users will only see timestamps and correlation IDs, not the business data they need</li>
<li><strong><a href="https://docs.nodinite.com/logging-and-monitoring/non-events/overview/">Non-Events Monitoring</a> cannot track volumes</strong> - You cannot detect missing transactions, failed WCF calls, or data outages</li>
<li><strong><a href="https://docs.nodinite.com/repository-model/bpms/overview/">Business Process Modeling (BPM)</a> cannot correlate transactions</strong> - End-to-end tracking across your WCF applications and other systems won't work</li>
</ol><p>See the <a href="https://docs.nodinite.com/logging-and-monitoring/wcf-diagnostics-tracing/getting-started/configuration/">Configuration</a> guide to set DefaultMessageType and MessageTypeFromBody properties, then configure <a href="https://docs.nodinite.com/repository-model/message-types/overview/">Message Types</a> in Nodinite Administration.</p></div>
</aside>

<div class="mermaid">
graph LR
    subgraph "WCF Enabled Application"
        roWCFApplication(fal:fa-globe WCF Application)-->
        roWCFTracing(fal:fa-bolt WCF Diagnostic Tracing</br>Configuration file</br>Nodinite DLL files )
        roFolder(fal:fa-folder Folder)  
        roWCFTracing --> roFolder
    end
    subgraph "Nodinite Server"
        roPS(fal:fa-truck-pickup Pickup Service)
        roFolder --> | SMB | roPS  
   end
</div>

## Scenario: Basic Request/Response

In this scenario we have one or more **Consumers** of the **WCF Application**.

<div class="mermaid">
sequenceDiagram
    participant Consumer
    participant WCF Application
    Consumer->>WCF Application: Request
    WCF Application->>Consumer: Response
</div>

### WCF Tracing enabled

With the built-in WCF Tracing enabled the Request and the Response is caught by the framework and copied to the trace engine.

<div class="mermaid">
sequenceDiagram
    participant Consumer
    participant WCF Application
    participant WCF Diagnostics Tracing
    Consumer->>WCF Application: Request
    WCF Application ->> WCF Diagnostics Tracing: Log Request
    WCF Application->>Consumer: Response
    WCF Application ->> WCF Diagnostics Tracing: Log Response
</div>

### <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> Trace listener

When the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> WCF Diagnostics tracing feature is enabled our component (DLL) will create a Json formatted [Log Event][] and write it to the configured output folder. Eventually the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [Pickup Log Events Service Logging Agent][Pickup Service] will consume these [Log Events][Log Event]. This means that <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> will NOT waste your disk space and you do not have to setup any cleaning maintenance jobs.

<div class="mermaid">
sequenceDiagram
    participant Consumer
    participant WCF Application
    participant WCF Diagnostics Tracing
    participant Nodinite Trace Listener
    Consumer->>WCF Application: Request
    WCF Application ->> WCF Diagnostics Tracing: Log Request
    WCF Diagnostics Tracing ->> Nodinite Trace Listener: Nodinite Log Event (Json)
    WCF Application->>Consumer: Response
    WCF Application ->> WCF Diagnostics Tracing: Log Response
    WCF Diagnostics Tracing ->> Nodinite Trace Listener: Nodinite Log Event (Json)
</div>

---

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

After enabling WCF Diagnostics Tracing, complete these steps to unlock business intelligence:

1. [Configuration][] – Configure DefaultMessageType and MessageTypeFromBody properties in your WCF application config file
2. [Message Types][] – Define business transaction types in Nodinite Administration (Critical first step)
3. [Search Field Expressions][] – Configure extraction of business data from WCF messages (Order IDs, Customer Numbers, etc.)
4. [Add or manage Log Views][Add or manage Log View] – Create views for self-service access to WCF diagnostic data
5. [Non-Events Monitoring][] (Optional) – Set up alerts for missing WCF transactions or data outages
6. [Business Process Modeling (BPM)][] (Optional) – Design end-to-end transaction flows across your WCF applications and other systems

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

* <i class="fal fa-tags" aria-hidden="true"></i> [Message Types][] (Mandatory) - Define business transaction types for Search Field extraction  
* <i class="fal fa-search-dollar" aria-hidden="true"></i> [Search Field Expressions][] - Extract business data from WCF messages using [XPath][], [JSON Path][], or [RegEx][]  
* <i class="fal fa-eye" aria-hidden="true"></i> [Log Views][] - Manage user access to WCF diagnostic data with role-based security  
* <i class="fal fa-chart-line" aria-hidden="true"></i> [Non-Events Monitoring][] - Track message volumes and detect data outages in WCF applications  
* <i class="fal fa-project-diagram" aria-hidden="true"></i> [Business Process Modeling (BPM)][] - Correlate transactions end-to-end across systems  
* <i class="fal fa-truck-pickup" aria-hidden="true"></i> [Pickup Log Events Service Logging Agent][Pickup Service] - Fetches WCF trace files asynchronously  
* <i class="fal fa-bolt" aria-hidden="true"></i> [Log Event][] - JSON formatted events written by WCF Diagnostics Tracing  
* <i class="fal fa-box-archive" aria-hidden="true"></i> [Log Agents][] - Manage **Log Agents**  
* <i class="fal fa-sitemap" aria-hidden="true"></i> [Repository Model][] - Active documentation and governance  

[Add or manage Log View]:https://docs.nodinite.com/administration/log-management/log-views/features/add-or-manage-log-view/
[Business Process Modeling (BPM)]:https://docs.nodinite.com/repository-model/bpms/overview/
[Configuration]:https://docs.nodinite.com/logging-and-monitoring/wcf-diagnostics-tracing/getting-started/configuration/
[IIS]:https://docs.nodinite.com/install-and-update/troubleshooting/iis/overview/
[JSON Path]:https://docs.nodinite.com/administration/log-management/search-fields/features/search-field-expressions/json-path/
[Log Agents]:https://docs.nodinite.com/administration/log-management/log-agents/features/what-is-a-log-agent/
[Log Event]:https://docs.nodinite.com/core-services/log-event/overview/
[Log Views]:https://docs.nodinite.com/administration/log-management/log-views/features/what-is-a-log-view/
[Message Types]:https://docs.nodinite.com/repository-model/message-types/overview/
[Non-Events Monitoring]:https://docs.nodinite.com/logging-and-monitoring/non-events/overview/
[Pickup Service]:https://docs.nodinite.com/logging-and-monitoring/pickup-logevents-service/overview/
[RegEx]:https://docs.nodinite.com/administration/log-management/search-fields/features/search-field-expressions/formula/extract/regex/
[Repository Model]:https://docs.nodinite.com/repository-model/overview/
[Search Field Expressions]:https://docs.nodinite.com/administration/log-management/search-fields/features/what-is-a-search-field/
[WCF Diagnostics Tracing]:https://docs.nodinite.com/logging-and-monitoring/wcf-diagnostics-tracing/overview/
[XPath]:https://docs.nodinite.com/administration/log-management/search-fields/features/search-field-expressions/formula/extract/xpath/