---
title: How Log Events Become Repository Model Stories, Runtime Diagrams, and Mapify Views
description: Learn how a Log Event becomes Repository Model data, how Context Options guide Repository Binding, and how grouped Log Views turn into runtime diagrams, Mapify views, and C4 Diagrams in Nodinite
---

# :fa-child-reaching: How Log Events Become Repository Model Stories, Runtime Diagrams, and Mapify Views

Imagine a [Log Event][] as a tiny note that :Nodinite: can read.

The note says three simple things:

* what happened
* what was sent
* what extra labels came with it

Those labels help the [Logging Service][] connect the note to the [Repository Model][].

## :fa-box: What is inside one Log Event?

Every [Log Event][] has three small parts:

* **Event details** - when, where, and how the event arrived
* **Payload** - the message itself
* **Context Properties** - the helper labels that explain what the message means

<div class="mermaid">
graph TD
    Event["fa:fa-envelope Log Event"]
    Details["fa:fa-clock Event details"]
    Payload["fa:fa-box Payload"]
    Context["fa:fa-tags Context Properties"]
    Event --> Details
    Event --> Payload
    Event --> Context
    style Event fill:#2678BD
    style Details fill:#93d16d
    style Payload fill:#93d16d
    style Context fill:#93d16d
</div>

*Diagram: One [Log Event][] contains event details, payload, and Context Properties. Nodinite reads all three parts before it decides how to connect the event to the [Repository Model][].*

## :fa-gears: How the note gets read

The [Log API][Log API] hands the [Log Event][] to the [Logging Service][]. The [Logging Service][] reads the note, checks the [Context Options][], and decides how the event should connect to the [Repository Model][].

Think of [Context Options][] as little helper stickers. They tell :Nodinite: which [Message Types][] to expect, which [Search Fields][] matter, and how the event should support [Repository Binding][].

<div class="mermaid">
graph TD
    API["fa:fa-cloud Log API"]
    Service["fa:fa-gears Logging Service"]
    Context["fa:fa-tags Context Options"]
    MsgType["fa:fa-file-lines Message Type"]
    Search["fa:fa-magnifying-glass Search Fields"]
    Bind["fa:fa-link Repository Binding"]
    Repo["fa:fa-sitemap Repository Model"]
    API --> Service
    Service --> Context
    Service --> MsgType
    Service --> Search
    Context --> Bind
    MsgType --> Bind
    Search --> Bind
    Bind --> Repo
    style API fill:#2678BD
    style Service fill:#93d16d
    style Context fill:#FFD525
    style MsgType fill:#93d16d
    style Search fill:#93d16d
    style Bind fill:#93d16d
    style Repo fill:#2678BD
</div>

*Diagram: The [Log API][Log API] sends the event to the [Logging Service][]. The service reads [Context Options][], [Message Types][], and [Search Fields][], then creates or updates [Repository Binding][] in the [Repository Model][].*

## :fa-sitemap: How the Repository Model grows

The [Repository Model][] is the grown-up map behind the scenes.

When the event has enough clues, :Nodinite: can connect the story to:

* [Systems][]
* [Services][]
* [Contracts][Contracts]
* [Integrations][]

That means the same [Log Event][] can help build living knowledge about the [Integration Landscape][].

![One Log Event with a Repository Binding posted in Scalar creates the Integration INT2001 - Customer Returns with its System, Service and Contract, then shown in Mapify, animated walkthrough (7.12)][1]  
*Animated walkthrough: one return request is sent to the [Log API][] with a [Repository Binding][] that names *INT2001 - Customer Returns*, which doesn't exist yet. Right away, **Repository** → **Integrations** lists the new Integration with its System *Contoso Returns Portal*, its Service *INT2001-RCV-Return-Request* and its Message Type, each described as created from the context-options feature of a Log Event. **Show in [Mapify][]** draws what the one event put in the Repository Model: the Integration, its Service, its System and the Contract *Return Request Contract*.*  

<div class="mermaid">
graph TD
    Event["fa:fa-envelope Log Event"]
    Bind["fa:fa-link Repository Binding"]
    Systems["fa:fa-building Systems"]
    Services["fa:fa-cog Services"]
    Contracts["fa:fa-file-contract Contracts"]
    Integrations["fa:fa-diagram-project Integrations"]
    Landscape["fa:fa-map Integration Landscape"]
    Event --> Bind
    Bind --> Systems
    Bind --> Services
    Bind --> Contracts
    Bind --> Integrations
    Systems --> Landscape
    Services --> Landscape
    Contracts --> Landscape
    Integrations --> Landscape
    style Event fill:#2678BD
    style Bind fill:#93d16d
    style Systems fill:#93d16d
    style Services fill:#93d16d
    style Contracts fill:#93d16d
    style Integrations fill:#93d16d
    style Landscape fill:#2678BD
</div>

*Diagram: The same [Log Event][] can connect to [Systems][], [Services][], [Contracts][Contracts], and [Integrations][]. Together they form the [Integration Landscape][].*

## :fa-diagram-project: How one group becomes a runtime story

When [Log Views][] are grouped, Nodinite collects the matching [Log Events][Log Event] for one business trip.

That grouped view can then become a [Runtime Diagram][].

There are two easy ways to read it:

| Mode | Kid version | What it shows |
| --- | --- | --- |
| [Participants mode][Participants mode] | The people or helpers in the story | Which [Service][Services] or [Contract][Contracts] handled each step |
| [Systems mode][Systems mode] | The big boxes in the story | How the same trip moved from [System][Systems] to [System][Systems] |

<div class="mermaid">
graph TD
    Group["fa:fa-layer-group Grouped Log View"]
    Participants["fa:fa-share-nodes Participants mode"]
    SystemsMode["fa:fa-building Systems mode"]
    Runtime["fa:fa-diagram-project Runtime Diagram"]
    Group --> Participants
    Group --> SystemsMode
    Participants --> Runtime
    SystemsMode --> Runtime
    style Group fill:#2678BD
    style Participants fill:#93d16d
    style SystemsMode fill:#93d16d
    style Runtime fill:#FFD525
</div>

*Diagram: A [Grouped Log View][Grouped Log View] becomes a [Runtime Diagram][]. You can read the same story in [Participants mode][Participants mode] or [Systems mode][Systems mode].*

## :fa-diagram-project: Why BPM, Mapify, and C4 all care about the same facts

* :fa-project-diagram: [BPM][] shows the business step.
* :fa-map: [Mapify][] shows the big interactive relationship map.
* :fa-diagram-project: [C4 Diagrams][] show the architecture shape in a structured way. :new7.12: A BPM can generate its own C4 Dynamic diagram with **C4 Dynamic** on its view page.

All three can use the same [Repository Model][] facts that started with the [Log Event][].

<div class="mermaid">
graph LR
    Event["fa:fa-envelope Log Event"]
    Repo["fa:fa-sitemap Repository Model"]
    BPMNode["fa:fa-project-diagram BPM"]
    MapifyNode["fa:fa-map Mapify"]
    C4Node["fa:fa-diagram-project C4 Diagrams"]
    Event --> Repo
    Repo --> BPMNode
    Repo --> MapifyNode
    Repo --> C4Node
    style Event fill:#2678BD
    style Repo fill:#93d16d
    style BPMNode fill:#FFD525
    style MapifyNode fill:#93d16d
    style C4Node fill:#93d16d
</div>

*Diagram: One [Log Event][] helps build the [Repository Model][]. The same Repository facts can then feed [BPM][], [Mapify][], and [C4 Diagrams][].*

## :fa-table: Tiny cheat sheet

| Thing | Easy way to think about it |
| --- | --- |
| [Log Event][] | A tiny note from a running system |
| [Context Options][] | Helper stickers that explain the note |
| [Repository Binding][] | The string that ties the note to the map |
| [Grouped Log View][Grouped Log View] | A pile of notes that belong to one trip |
| [Runtime Diagram][] | The story of that trip |
| [Mapify][] | The big interactive playground map |
| [C4 Diagrams][] | The neat blueprint version of the same facts |

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

* :fa-share-nodes: [Inspect grouped Log Views as runtime diagrams][Runtime Diagram Feature]  
* :fa-diagram-project: [Working with Nodinite Log Views][Log Overview]  
* :fa-map: [Mapify Overview][Mapify Overview]  

## :fa-link-horizontal: Related Topics

* :fa-cloud: [Log API][Log API]  
* :fa-gears: [Logging Service][]  
* :fa-tags: [Context Options][]  
* :fa-sitemap: [Repository Model][]  
* :fa-layer-group: [Log Views][]  
* :fa-project-diagram: [Business Process Model (BPM)][BPM]  
* :fa-map: [Mapify][]  
* :fa-diagram-project: [C4 Diagrams][]  
* :fa-map-location-dot: [Integration Landscape][]  

[1]:{ndm}/Documentation%20Pictures/IM/CoreServices/LogAPI/LogEvent_ToRepositoryStory.gif

[BPM]:{ndr}/Repository%20Model/BPMs/Overview.md
[C4 Diagrams]:{ndr}/Repository%20Model/C4%20Diagrams/Overview.md
[Context Options]:{ndr}/Core%20Services/Log%20Event/Features/Context%20Options.md
[Contracts]:{ndr}/Getting%20Started/4.%20Repository/Contracts/Overview.md
[Grouped Log View]:{ndr}/Administration/1.%20Log%20Management/1.%20Log%20Views/Features/What%20is%20a%20Log%20View.md
[Integration Landscape]:{ndr}/Getting%20Started/4.%20Repository/Integrations/Integration%20Landscape.md
[Integrations]:{ndr}/Getting%20Started/4.%20Repository/Integrations/Overview.md
[Log API]:{ndr}/Core%20Services/Log%20Event/Overview.md
[Log Event]:{ndr}/Core%20Services/Log%20Event/Overview.md
[Log Overview]:{ndr}/Getting%20Started/2.%20Log/Overview.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
[Mapify]:{ndr}/Mapify/Overview.md
[Mapify Overview]:{ndr}/Mapify/Overview.md
[Message Types]:{ndr}/Repository%20Model/Message%20Types/Overview.md
[Participants mode]:{ndr}/Getting%20Started/2.%20Log/Inspect%20grouped%20Log%20Views%20as%20runtime%20diagrams.md#participants-mode
[Repository Binding]:{ndr}/Core%20Services/Log%20Event/Features/Context%20Options.md
[Repository Model]:{ndr}/Repository%20Model/Overview.md
[Runtime Diagram]:{ndr}/Getting%20Started/2.%20Log/Inspect%20grouped%20Log%20Views%20as%20runtime%20diagrams.md
[Runtime Diagram Feature]:{ndr}/Getting%20Started/2.%20Log/Inspect%20grouped%20Log%20Views%20as%20runtime%20diagrams.md
[Search Fields]:{ndr}/Administration/1.%20Log%20Management/2.%20Search%20Fields/Features/What%20is%20a%20Search%20Field.md
[Services]:{ndr}/Getting%20Started/4.%20Repository/Services/Overview.md
[Systems]:{ndr}/Getting%20Started/4.%20Repository/Systems/Overview.md
[Systems mode]:{ndr}/Getting%20Started/2.%20Log/Inspect%20grouped%20Log%20Views%20as%20runtime%20diagrams.md#systems-mode