# Display a log file in dashboard

**URL:** https://discourse.nodered.org/t/display-a-log-file-in-dashboard/11134
**Category:** Dashboard
**Created:** [14 May 2019 20:17 UTC](https://discourse.nodered.org/t/display-a-log-file-in-dashboard/11134 "2019-05-14T20:17:21Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![shrickus](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/shrickus/32/517_2.png) [@shrickus](https://discourse.nodered.org/u/shrickus)
#### Post date: [14 May 2019 20:29 UTC](https://discourse.nodered.org/t/display-a-log-file-in-dashboard/11134/2 "2019-05-14T20:29:22Z")

</div>

Wow, there's a blast from the past...

There are lots of html tricks for displaying plain text with line breaks in a browser. I like to put a bit of CSS styling into my `ui_template` node, like so:

```auto
<style>
    #mylog {
        min-height: 300px;
        padding: 0;
        white-space: pre;
    }
</style>

<div id="mylog" ng-bind="msg.payload" contenteditable="true">
    <!-- file contents will go here -->
</div>

```

which works well if you just want to show some multi-line text. I've also used Angular syntax to render a payload array into separate `<li>` elements or table rows, for instance. It really depends on whether your data is unstructured text, or columns of data.

---

_[View the full topic](https://discourse.nodered.org/t/display-a-log-file-in-dashboard/11134)._
