---
title: View the Message Body of a Log Event in a Nodinite Log View
description: "Read the payload of a Log Event in a Nodinite Log View byte for byte: pretty print, hidden characters and BOM, line break markers for EDIFACT and X12, re-render in another encoding, decode Base64 and MIME mail, or view it through a Stylesheet."
---

# View the Message Body of a Log Event

The message body is the business document itself: the order, the invoice, the EDI interchange. In a <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [Log View][What is a Log View], users read it exactly as it was logged, and render it in whatever form makes it readable, without changing what is stored.

* ✅ The payload byte for byte, with size, position, and selection like a file editor  
* ✅ Pretty print, word wrap, hidden characters, and line break markers for EDIFACT and X12  
* ✅ Re-render in any [supported encoding][Character Encoding], decode Base64 or MIME mail  
* ✅ A business-friendly view through a [Stylesheet][Stylesheets]  

![View the message body of an invoice Log Event, turn on Show hidden characters, then view it formatted as Contoso - Invoice view, animated walkthrough (7.13)][Hero]  
*Animated walkthrough: **Action** › **View message body** shows the invoice JSON as logged; **Show hidden characters** marks spaces and line ends without changing the stored body. Then **View message formatted as 'Contoso - Invoice view'** shows the same invoice as a document.*  

This page is a spoke of [What is a Log View?][What is a Log View]. The other actions on a [Log Event][] are on [View Log Event Details and Repair][] and [Resend and Download Log Events][].

## <i class="fal fa-diagram-project" aria-hidden="true"></i> Understanding the Two Message Views

A [Log Event][]'s body can be shown two ways from the **Action** menu. Both need a permission from the [Permission Set for Log Views][] of the user's [Role][Roles].

| View | Shows | Needs |
|---|---|---|
| **View message body** | The raw payload, with editor options and [encodings][Character Encoding] | [View Body][Permission Set for Log Views - View Body] |
| **View message formatted as…** | The payload transformed by the [Stylesheet][Stylesheets] of its [Message Type][Message Types] | [View Transformed][Permission Set for Log Views - View Transformed], and a Stylesheet on the Message Type |

## View Message Body

Click '**View message body**' to open the **View Message** dialog with the payload in its original format, showing size, position, and selection like a file editor.

>The view message body option is available to users with permission to view the message body.

![View message body modal showing a raw logged message payload][1]  
*Example: A logged message in its raw format.*  

In the dialog, advanced options are available depending on your permissions and role membership:

* **Download** - Download the original message, byte for byte.
* **Download converted to** - Download the message converted to a target encoding you choose. See [Download][Resend and Download Log Events - Download]. <sup><span class="nodinite-new-badge">New 7.11</span></sup>
* **Open in a new window** - Open the message in a separate window.
* **Word wrap** - Toggle word-wrap for easier reading.
* **Format JSON/XML** - Beautify the message for readability.
* **Show hidden characters** - Display hidden characters (e.g., whitespace, tab) with special markings. <sup><span class="nodinite-new-badge">New 6.0</span></sup> With a *with BOM* encoding selected, a leading byte order mark shows as a red `BOM` marker. <sup><span class="nodinite-new-badge">New 7.11</span></sup>

    ![Red BOM marker shown by Show hidden characters (7.12)][2]  
    *A message read as **UTF-8 (with BOM)** with **Show hidden characters** on.*  

* **Manual linebreak** - Insert line breaks at specified content. Reload the payload to revert changes. Especially useful for reading EDIFACT/X12 messages. <sup><span class="nodinite-new-badge">New 6.0</span></sup>
* **Encoding** - Re-render the message with the selected encoding. From 7.11, the dropdown opens on the message's [resolved encoding][Character Encoding], and its tooltip says where that came from, such as *From the Message Type*. <sup><span class="nodinite-new-badge">New 7.11</span></sup>

    ![Encoding dropdown preset from the Message Type (7.11)][3]  
    *The encoding dropdown preset to **UTF-8 (without BOM)**, with a tooltip naming the Message Type as the source.*  

The dropdown offers every [supported encoding][Character Encoding], including **UTF-8 (with BOM)** and one **Base64 Decode into …** option per encoding (earlier versions had a single **Base64 Decode**, now **Base64 Decode into UTF-8 (without BOM)**), plus **Base64 Encode**, [Mime Mail to Text](#mime-mail-to-text), and **None (Binary)**.

<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>Rendering a message with a different encoding changes only what you see. The stored message is not changed.</p></div>
</aside>

* [Search Field Wizard][Search Field Wizard] - Create or manage [Search Fields][]. The wizard's **Encoding** dropdown opens on the message's resolved encoding. <sup><span class="nodinite-new-badge">New 7.11</span></sup>
* **Reset & reload** - Undo the view options and load the payload again.

### Mime Mail to Text

The '**Mime Mail to Text**' encoding option shows MIME-encoded messages in readable form. For the sample below, it decodes the base64-encoded part.

```bash
MIME-Version: 1.0
Content-type: text/plain; charset="utf-8"
Content-Transfer-Encoding: Base64
Content-ID: {749803BA-3A65-4A8F-1337-65125988BBF3}
Content-Description: body

Tm9kaW5pdGUgaGFzIGl0IGFsbCE=
```

The base64-encoded part decodes to:

```plaintext
Nodinite has it all!
```

## View Message Formatted as 'Name of the Stylesheet'

Click **View message formatted as '*Stylesheet name*'** to open the dialog **View message body formatted as '*Stylesheet name*'**, with the message payload styled using a [stylesheet][Stylesheets]. From 7.11, <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> converts the body from its [resolved encoding][Character Encoding] to UTF-8 before inserting it into the stylesheet, so characters such as `Å` and `é` display correctly. <sup><span class="nodinite-new-badge">New 7.11</span></sup>

<aside aria-label="Note" class="nodinite-note nodinite-note--note">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-note"></i> Note</p>
<div class="nodinite-note__content"><p>Needs <strong>View Transformed</strong>; see <a href="https://docs.nodinite.com/administration/access-management/roles/features/permission-set-for-log-views/">Permission Set for Log Views</a>.</p></div>
</aside>

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

* <i class="fal fa-file-lines" aria-hidden="true"></i> [View Log Event Details and Repair][]  
* <i class="fal fa-paper-plane" aria-hidden="true"></i> [Resend and Download Log Events][]  
* <i class="fal fa-paint-brush" aria-hidden="true"></i> [What is a Stylesheet?][Stylesheets] – give a Message Type a business-friendly view  

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

* <i class="fal fa-hard-drive" aria-hidden="true"></i> [What is a Log View?][What is a Log View]  
* <i class="fal fa-language" aria-hidden="true"></i> [Character Encoding][] - How the encoding of a message body is decided  
* <i class="fal fa-users-class" aria-hidden="true"></i> [Permission Set for Log Views][] - **View Body** and **View Transformed**  
* <i class="fal fa-magnifying-glass-plus" aria-hidden="true"></i> [Search Field Wizard][] and [Search Fields][]  
* <i class="fal fa-tags" aria-hidden="true"></i> [Message Types][]  

[1]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/WebClient/Admin/Log/LogViews/ViewMessageBody.png
[2]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/WebClient/Log/ViewMessageBody_ShowBOMExample.png
[3]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/WebClient/Log/ViewMessageBody_DefaultEncodingPreset.png

[Character Encoding]:https://docs.nodinite.com/core-services/log-event/features/character-encoding/
[Hero]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/WebClient/Log/LogView_MessageBodyViews.gif
[Log Event]:https://docs.nodinite.com/core-services/log-event/overview/
[Message Types]:https://docs.nodinite.com/repository-model/message-types/overview/
[Permission Set for Log Views]:https://docs.nodinite.com/administration/access-management/roles/features/permission-set-for-log-views/
[Permission Set for Log Views - View Body]:https://docs.nodinite.com/administration/access-management/roles/features/permission-set-for-log-views/#fa-file-code-view-body
[Permission Set for Log Views - View Transformed]:https://docs.nodinite.com/administration/access-management/roles/features/permission-set-for-log-views/#fa-file-alt-view-transformed
[Resend and Download Log Events]:https://docs.nodinite.com/administration/log-management/log-views/features/resend-and-download-log-events/
[Resend and Download Log Events - Download]:https://docs.nodinite.com/administration/log-management/log-views/features/resend-and-download-log-events/#download
[Roles]:https://docs.nodinite.com/administration/access-management/roles/features/what-is-a-role/
[Search Field Wizard]:https://docs.nodinite.com/administration/log-management/search-fields/getting-started/how-to-use-the-search-field-wizard/
[Search Fields]:https://docs.nodinite.com/administration/log-management/search-fields/features/what-is-a-search-field/
[Stylesheets]:https://docs.nodinite.com/administration/customize/stylesheets/features/what-is-a-stylesheet/
[View Log Event Details and Repair]:https://docs.nodinite.com/administration/log-management/log-views/features/view-log-event-details-and-repair/
[What is a Log View]:https://docs.nodinite.com/administration/log-management/log-views/features/what-is-a-log-view/