---
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 :Nodinite: you get total control and a foundation for governance and an active documentation using our [Repository Model][].
With :Nodinite: you can **centralize logging** and manage/share insights from logged events.

>[!IMPORTANT]
>**Configure [Message Types][] for business intelligence**
>
>When implementing [WCF Diagnostics Tracing][], you must configure [Message Types][] using the **DefaultMessageType** and **MessageTypeFromBody** properties in your WCF application's configuration file. Without Message Types configured:
>
>1. **[Search Field Expressions][] cannot extract business data** - Order IDs, Customer Numbers, and Invoice Numbers from WCF messages won't be searchable
>2. **[Log Views][] cannot provide self-service** - Business users will only see timestamps and correlation IDs, not the business data they need
>3. **[Non-Events Monitoring][] cannot track volumes** - You cannot detect missing transactions, failed WCF calls, or data outages
>4. **[Business Process Modeling (BPM)][] cannot correlate transactions** - End-to-end tracking across your WCF applications and other systems won't work
>
>See the [Configuration][] guide to set DefaultMessageType and MessageTypeFromBody properties, then configure [Message Types][] in Nodinite Administration.

<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>

### :Nodinite: Trace listener

When the :Nodinite: 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 :Nodinite: [Pickup Log Events Service Logging Agent][Pickup Service] will consume these [Log Events][Log Event]. This means that :Nodinite: 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>

---

## :fa-hand-point-right: 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

## :fa-link-horizontal: Related Topics

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

[Add or manage Log View]:{ndr}/Administration/1.%20Log%20Management/1.%20Log%20Views/Features/Add%20or%20Manage%20Log%20View.md
[Business Process Modeling (BPM)]:{ndr}/Repository%20Model/BPMs/Overview.md
[Configuration]:{ndr}/Logging%20and%20Monitoring/WCF%20Diagnostics%20Tracing/Getting%20started/3.%20Configuration.md
[IIS]:{ndr}/Install%20and%20Update/Troubleshooting/IIS/Overview.md
[JSON Path]:{ndr}/Administration/1.%20Log%20Management/2.%20Search%20Fields/Features/Search%20Field%20Expressions/JSON%20Path.md
[Log Agents]:{ndr}/Administration/1.%20Log%20Management/3.%20Log%20Agents/Features/What%20is%20a%20Log%20Agent.md
[Log Event]:{ndr}/Core%20Services/Log%20Event/Overview.md
[Log Views]:{ndr}/Administration/1.%20Log%20Management/1.%20Log%20Views/Features/What%20is%20a%20Log%20View.md
[Message Types]:{ndr}/Repository%20Model/Message%20Types/Overview.md
[Non-Events Monitoring]:{ndr}/Logging%20and%20Monitoring/Non-Events/Overview.md
[Pickup Service]:{ndr}/Logging%20and%20Monitoring/Pickup%20LogEvents%20Service/Overview.md
[RegEx]:{ndr}/Administration/1.%20Log%20Management/2.%20Search%20Fields/Features/Search%20Field%20Expressions/Formula/Extract/regex.md
[Repository Model]:{ndr}/Repository%20Model/Overview.md
[Search Field Expressions]:{ndr}/Administration/1.%20Log%20Management/2.%20Search%20Fields/Features/What%20is%20a%20Search%20Field.md
[WCF Diagnostics Tracing]:{ndr}/Logging%20and%20Monitoring/WCF%20Diagnostics%20Tracing/Overview.md
[XPath]:{ndr}/Administration/1.%20Log%20Management/2.%20Search%20Fields/Features/Search%20Field%20Expressions/Formula/Extract/xPath.md