Logging with the WCF Diagnostics tracing feature
Section titled “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.
Configuration file
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
Scenario: Basic Request/Response
Section titled “Scenario: Basic Request/Response”In this scenario we have one or more Consumers of the WCF Application.
WCF Tracing enabled
Section titled “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.
Nodinite Trace listener
Section titled “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 will consume these Log Events. This means that Nodinite will NOT waste your disk space and you do not have to setup any cleaning maintenance jobs.
Next Steps
Section titled “ Next Steps”After enabling WCF Diagnostics Tracing, complete these steps to unlock business intelligence:
- Configuration – Configure DefaultMessageType and MessageTypeFromBody properties in your WCF application config file
- Message Types – Define business transaction types in Nodinite Administration (Critical first step)
- Search Field Expressions – Configure extraction of business data from WCF messages (Order IDs, Customer Numbers, etc.)
- Add or manage Log Views – Create views for self-service access to WCF diagnostic data
- Non-Events Monitoring (Optional) – Set up alerts for missing WCF transactions or data outages
- Business Process Modeling (BPM) (Optional) – Design end-to-end transaction flows across your WCF applications and other systems
Related Topics
Section titled “ Related Topics”- Message Types (Mandatory) - Define business transaction types for Search Field extraction
- Search Field Expressions - Extract business data from WCF messages using XPath, JSON Path, or RegEx
- Log Views - Manage user access to WCF diagnostic data with role-based security
- Non-Events Monitoring - Track message volumes and detect data outages in WCF applications
- Business Process Modeling (BPM) - Correlate transactions end-to-end across systems
- Pickup Log Events Service Logging Agent - Fetches WCF trace files asynchronously
- Log Event - JSON formatted events written by WCF Diagnostics Tracing
- Log Agents - Manage Log Agents
- Repository Model - Active documentation and governance