---
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 :Nodinite: [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][].

## :fa-diagram-project: 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]. :new7.11:
* **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. :new6.0: With a *with BOM* encoding selected, a leading byte order mark shows as a red `BOM` marker. :new7.11:

    ![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. :new6.0:
* **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*. :new7.11:

    ![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)**.

>[!IMPORTANT]  
>Rendering a message with a different encoding changes only what you see. The stored message is not changed.

* [Search Field Wizard][Search Field Wizard] - Create or manage [Search Fields][]. The wizard's **Encoding** dropdown opens on the message's resolved encoding. :new7.11:
* **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, :Nodinite: 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. :new7.11:

>[!NOTE]
>Needs **View Transformed**; see [Permission Set for Log Views][].

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

* :fa-file-lines: [View Log Event Details and Repair][]  
* :fa-paper-plane: [Resend and Download Log Events][]  
* :fa-paint-brush: [What is a Stylesheet?][Stylesheets] – give a Message Type a business-friendly view  

## :fa-link-horizontal: Related Topics

* :fa-hard-drive: [What is a Log View?][What is a Log View]  
* :fa-language: [Character Encoding][] - How the encoding of a message body is decided  
* :fa-users-class: [Permission Set for Log Views][] - **View Body** and **View Transformed**  
* :fa-magnifying-glass-plus: [Search Field Wizard][] and [Search Fields][]  
* :fa-tags: [Message Types][]  

[1]:{ndm}/Documentation%20Pictures/IM/WebClient/Admin/Log/LogViews/ViewMessageBody.png
[2]:{ndm}/Documentation%20Pictures/IM/WebClient/Log/ViewMessageBody_ShowBOMExample.png
[3]:{ndm}/Documentation%20Pictures/IM/WebClient/Log/ViewMessageBody_DefaultEncodingPreset.png

[Character Encoding]:{ndr}/Core%20Services/Log%20Event/Features/Character%20Encoding.md
[Hero]:{ndm}/Documentation%20Pictures/IM/WebClient/Log/LogView_MessageBodyViews.gif
[Log Event]:{ndr}/Core%20Services/Log%20Event/Overview.md
[Message Types]:{ndr}/Repository%20Model/Message%20Types/Overview.md
[Permission Set for Log Views]:{ndr}/Administration/3.%20Access%20Management/1.%20Roles/Features/Permission%20Set%20for%20Log%20Views.md
[Permission Set for Log Views - View Body]:{ndr}/Administration/3.%20Access%20Management/1.%20Roles/Features/Permission%20Set%20for%20Log%20Views.md#fa-file-code-view-body
[Permission Set for Log Views - View Transformed]:{ndr}/Administration/3.%20Access%20Management/1.%20Roles/Features/Permission%20Set%20for%20Log%20Views.md#fa-file-alt-view-transformed
[Resend and Download Log Events]:{ndr}/Administration/1.%20Log%20Management/1.%20Log%20Views/Features/Resend%20and%20Download%20Log%20Events.md
[Resend and Download Log Events - Download]:{ndr}/Administration/1.%20Log%20Management/1.%20Log%20Views/Features/Resend%20and%20Download%20Log%20Events.md#download
[Roles]:{ndr}/Administration/3.%20Access%20Management/1.%20Roles/Features/What%20is%20a%20Role.md
[Search Field Wizard]:{ndr}/Administration/1.%20Log%20Management/2.%20Search%20Fields/Getting%20started/How%20to%20use%20the%20Search%20Field%20Wizard.md
[Search Fields]:{ndr}/Administration/1.%20Log%20Management/2.%20Search%20Fields/Features/What%20is%20a%20Search%20Field.md
[Stylesheets]:{ndr}/Administration/4.%20Customize/2.%20Stylesheets/Features/What%20is%20a%20Stylesheet.md
[View Log Event Details and Repair]:{ndr}/Administration/1.%20Log%20Management/1.%20Log%20Views/Features/View%20Log%20Event%20Details%20and%20Repair.md
[What is a Log View]:{ndr}/Administration/1.%20Log%20Management/1.%20Log%20Views/Features/What%20is%20a%20Log%20View.md