---
title: Nodinite Logging Strategy and Best Practices for Developers and Architects
description: "Where developers and architects start with Nodinite logging: what to log, how to correlate long-running transactions end to end, why to log asynchronously through the Pickup Service, how to log status and errors, and how to plan volume and retention, for BizTalk, Azure, Boomi, MuleSoft, and custom code."
---

# :fa-compass: Plan Your Logging with Nodinite

Without logging, you are not aware. A message that never arrived, an order that stopped halfway, a partner who says "we sent it on Tuesday": without the event and the message itself, nobody can prove what happened. This section is for the developers and architects who make :Nodinite: [Log Views][] worth opening: a logging strategy in seven rules, with the logging best practices that pay off. It covers what to log, how to get it there, and how to keep it useful for years.

* ✅ Pick the right way to log from BizTalk, Azure, Boomi, MuleSoft, or your own code  
* ✅ Follow one order end to end, even when its response arrives days later  
* ✅ Keep logging reliable through updates, and keep the volume under control  

![A Log Event with the context value OrderNumber ORD-10259 is posted to the Log API in Scalar and answered 200 OK, then found in the Log View Contoso: Orders by its O2C - Order ID, processed, with the Search Field values from the context and the body, animated walkthrough (7.13)][Hero]  
*Animated walkthrough: one [Log Event][] from the [Log API][] to a [Log View][Log Views]. The event carries its message and its context, so the [Search Field][Search Fields] values are extracted from both, and a business user finds it by Order Id.*  

Business user looking for an order? Go back to [Working with Nodinite Log Views][Log Overview] and the [Order flow][] journey instead. Need the cost picture for a decision? Read [Understand the Cost of Logging][Cost of Logging].

## :fa-network-wired: Understanding Logging with Nodinite {#understanding}

<div class="mermaid">
flowchart LR
    Platform["fa:fa-server Your platform<br/>or your code"] --> Store["fa:fa-inbox Intermediate storage<br/>queue, folder, table"]
    Platform -->|"Log Agent"| LogAPI["fa:fa-cloud-arrow-down Log API"]
    Store --> Pickup["fa:fa-truck-pickup Pickup Service"]
    Pickup --> LogAPI
    LogAPI --> Index["fa:fa-gears Message Type<br/>and Search Fields"]
    Index --> Use["fa:fa-eye Log Views, BPM,<br/>Non-Events, statistics"]
    style Platform fill:#9E59BB
    style Store fill:#E47528
    style Pickup fill:#3F827B
    style LogAPI fill:#93d16d
    style Index fill:#2678BD
    style Use fill:#2678BD
</div>

*Your platform or code (purple) writes [Log Events][Log Event] to intermediate storage (orange), where the [Pickup Service][] (teal) fetches them for the [Log API][] (green); out-of-the-box [Log Agents][] post for you. The [Logging Service][] then resolves the [Message Type][Message Types] and extracts the [Search Fields][] (blue), and the events become searchable in [Log Views][], visible on a [BPM][BPMs], watched by [Non-Events][], and counted in the statistics.*

A [Log Event][] carries the event details (where, when, status, correlation ids), the context (key-value properties such as an order number), and the body (the message itself). Each part has its own job; see [Log the Payload and Context][].

## :fa-list-check: Seven Rules for Logging That Pays Off {#rules}

| # | Rule | Read |
| --- | --- | --- |
| 1 | Use the agent for your platform first; write code only where no agent exists | [Log from Your Integration Platform][] |
| 2 | Log asynchronously through intermediate storage and the [Pickup Service][], so :Nodinite: can be updated or restarted without losing a single event | [Log Asynchronously and Survive Updates][] |
| 3 | Give every event a correlation id, and log the business key (Order Id), so end-to-end logging works even for long-running transactions | [Correlate Transactions End to End][] |
| 4 | Set a [Log Status Code][Log Status Codes] on every event, and log the failing message and the error, not only a stack trace | [Log Status and Errors][] |
| 5 | Log the payload and the context: you don't know what you need to search on until something breaks | [Log the Payload and Context][] |
| 6 | Measure the real volume before you decide what to keep, and set retention per [Message Type][Message Types] | [Plan Volume and Retention][] |
| 7 | Always set a [Message Type][Message Types] on every event: it drives [Search Fields][], retention, and statistics | [Always include Message Types][Asynchronous Logging - Message Types] |

## :fa-route: Where to Begin {#where-to-begin}

1. Find your platform in [Log from Your Integration Platform][] and follow its Getting started pages.  
2. Decide on the correlation id and the business keys with your team before the first line of logging code: see [Correlate Transactions End to End][].  
3. Turn logging on in test, with everything enabled (BizTalk tracking included), and watch the volume in the statistics for a week: see [Plan Volume and Retention][].  
4. Ask your :Nodinite: administrator for a [Log View][Log Views] with [Search Fields][] for your business keys, and let the business users try it.  
5. Want a running example first? The [Order-to-Cash demo][] logs a whole order flow with correlation, status codes, payloads, and Search Fields: see its [Log Event structure][O2C Log Event Structure].  

## :fa-books: Read On {#read-on}

| Page | For | You'll find |
| --- | --- | --- |
| [Logging Best Practices Library][Best Practices Library] | Developers and architects | Every page on logging well, by the question you have: design, delivery, search, errors, retention, and per platform |
| [Understand the Cost of Logging][Cost of Logging] | Managers and business stakeholders | The total cost of ownership: the fixed-price license, storage, cloud staging, logging twice, and the time saved |
| [Custom Logging (DIY)][Custom Logging Overview] | Developers writing their own logging | The checklist, and the FAQ on [appender frameworks][Appender Frameworks], [intermediate storage][Intermediate Storage], [schema changes][Schema Changes], and [performance][FAQ - Performance Impact] |

## :fa-hand-point-right: Next Steps

* :fa-plug: [Log from Your Integration Platform][]  
* :fa-truck-pickup: [Log Asynchronously and Survive Updates][]  
* :fa-link: [Correlate Transactions End to End][]  
* :fa-flag: [Log Status and Errors][]  
* :fa-file-code: [Log the Payload and Context][]  
* :fa-database: [Plan Volume and Retention][]  
* :fa-coins: [Understand the Cost of Logging][Cost of Logging]  
* :fa-books: [Logging Best Practices Library][Best Practices Library]  

## :fa-link-horizontal: Related Topics

* :fa-compass: [Plan Your Monitoring with Nodinite][Monitoring Strategy]  
* :fa-search: [Working with Nodinite Log Views][Log Overview]  
* :fa-bolt: [Log Event][]  
* :fa-cloud-arrow-down: [Log API][]  
* :fa-truck-pickup: [Pickup Service][]  
* :fa-screwdriver-wrench: [Custom Logging (DIY)][Custom Logging Overview]  
* :fa-route: [Order flow][]  
* :fa-diagram-project: [Order-to-Cash demo][]  

[Appender Frameworks]:{ndr}/Logging%20and%20Monitoring/Custom%20Logging/Troubleshooting/Appender%20Frameworks.md
[Asynchronous Logging - Message Types]:{ndr}/Core%20Services/Log%20API/Features/Asynchronous%20Logging.md#fa-file-always-include-message-types-in-your-logged-events
[Best Practices Library]:{ndr}/Getting%20Started/2.%20Log/Logging%20Strategy/Logging%20Best%20Practices%20Library.md
[BPMs]:{ndr}/Repository%20Model/BPMs/Overview.md
[Correlate Transactions End to End]:{ndr}/Getting%20Started/2.%20Log/Logging%20Strategy/Correlate%20Transactions%20End%20to%20End.md
[Cost of Logging]:{ndr}/Getting%20Started/2.%20Log/Logging%20Strategy/Understand%20the%20Cost%20of%20Logging.md
[Custom Logging Overview]:{ndr}/Logging%20and%20Monitoring/Custom%20Logging/Overview.md
[FAQ - Performance Impact]:{ndr}/Logging%20and%20Monitoring/Custom%20Logging/Troubleshooting/Performance%20Impact.md
[Hero]:{ndm}/Documentation%20Pictures/IM/CoreServices/LogAPI/LogEvent_FromApiToLogView.gif
[Intermediate Storage]:{ndr}/Logging%20and%20Monitoring/Custom%20Logging/Troubleshooting/Intermediate%20Storage.md
[Log Agents]:{ndr}/Administration/1.%20Log%20Management/3.%20Log%20Agents/Features/What%20is%20a%20Log%20Agent.md
[Log API]:{ndr}/Core%20Services/Log%20API/Overview.md
[Log Asynchronously and Survive Updates]:{ndr}/Getting%20Started/2.%20Log/Logging%20Strategy/Log%20Asynchronously%20and%20Survive%20Updates.md
[Log Event]:{ndr}/Core%20Services/Log%20Event/Overview.md
[Log from Your Integration Platform]:{ndr}/Getting%20Started/2.%20Log/Logging%20Strategy/Log%20from%20Your%20Integration%20Platform.md
[Log Overview]:{ndr}/Getting%20Started/2.%20Log/Overview.md
[Log Status and Errors]:{ndr}/Getting%20Started/2.%20Log/Logging%20Strategy/Log%20Status%20and%20Errors.md
[Log Status Codes]:{ndr}/Administration/1.%20Log%20Management/3.%20Log%20Agents/Features/What%20is%20a%20Log%20Status%20Code.md
[Log the Payload and Context]:{ndr}/Getting%20Started/2.%20Log/Logging%20Strategy/Log%20the%20Payload%20and%20Context.md
[Log Views]:{ndr}/Administration/1.%20Log%20Management/1.%20Log%20Views/Features/What%20is%20a%20Log%20View.md
[Logging Service]:{ndr}/Core%20Services/Logging%20Service/Overview.md
[Message Types]:{ndr}/Repository%20Model/Message%20Types/Overview.md
[Monitoring Strategy]:{ndr}/Getting%20Started/3.%20Monitor/Monitoring%20Strategy/Overview.md
[Non-Events]:{ndr}/Logging%20and%20Monitoring/Non-Events/Overview.md
[O2C Log Event Structure]:{ndr}/Repository%20Model/BPMs/Examples/Order-to-Cash/O2C-Log-Event-Structure.md
[Order flow]:{ndr}/Getting%20Started/Scenarios/Order%20flow/Overview.md
[Order-to-Cash demo]:{ndr}/Repository%20Model/BPMs/Examples/Order-to-Cash/Generate-O2C-Demo-Data.md
[Pickup Service]:{ndr}/Logging%20and%20Monitoring/Pickup%20LogEvents%20Service/Overview.md
[Plan Volume and Retention]:{ndr}/Getting%20Started/2.%20Log/Logging%20Strategy/Plan%20Volume%20and%20Retention.md
[Schema Changes]:{ndr}/Logging%20and%20Monitoring/Custom%20Logging/Troubleshooting/Schema%20Changes.md
[Search Fields]:{ndr}/Administration/1.%20Log%20Management/2.%20Search%20Fields/Features/What%20is%20a%20Search%20Field.md