# How to ad dnew line in logger message

**URL:** <https://forum.inductiveautomation.com/t/how-to-ad-dnew-line-in-logger-message/49953>\
**Category:** Ignition\
**Tags:** ignition79\
**Created:** [August 16, 2021, 12:02pm UTC](https://forum.inductiveautomation.com/t/how-to-ad-dnew-line-in-logger-message/49953 "2021-08-16T12:02:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mcarritt1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mcarritt1/32/4262_2.png) [@mcarritt1](https://forum.inductiveautomation.com/u/mcarritt1)\
**Post date:** [August 16, 2021, 12:02pm UTC](https://forum.inductiveautomation.com/t/how-to-ad-dnew-line-in-logger-message/49953/1 "2021-08-16T12:02:58Z")

</div>

Hi, we have some things logging to custom gateway logs using system.util.getLogger()

Some messages are a bit messy, is there any way to add a new line to a message? Or other tricks for maybe pretty printing an object?

I’ve tried \n, \r, and `<br />` but no dice.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [August 16, 2021, 12:17pm UTC](https://forum.inductiveautomation.com/t/how-to-ad-dnew-line-in-logger-message/49953/2 "2021-08-16T12:17:41Z")

</div>

From the gateway web page, no. But `\n` will show new lines correctly in the wrapper log.

---

<div class="post-metadata">

**Author:** ![mcarritt1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mcarritt1/32/4262_2.png) [@mcarritt1](https://forum.inductiveautomation.com/u/mcarritt1)\
**Post date:** [August 16, 2021, 12:20pm UTC](https://forum.inductiveautomation.com/t/how-to-ad-dnew-line-in-logger-message/49953/3 "2021-08-16T12:20:33Z")

</div>

ah ok, thanks phil
