# Add time information to the log

**URL:** <https://forum.mattermost.com/t/add-time-information-to-the-log/6570>\
**Category:** Troubleshooting\
**Created:** [January 25, 2019, 12:47am UTC](https://forum.mattermost.com/t/add-time-information-to-the-log/6570 "2019-01-25T00:47:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Babbles](https://avatars.discourse-cdn.com/v4/letter/b/94ad74/32.png) [@Babbles](https://forum.mattermost.com/u/Babbles)\
**Post date:** [January 25, 2019, 12:47am UTC](https://forum.mattermost.com/t/add-time-information-to-the-log/6570/1 "2019-01-25T00:47:36Z")

</div>

I currently have an “invalid connection / session” error festival in progress.  
However, it is not always occurring constantly. Mattermost.log do not have the “date and time information” when I look at the log.

I would like to add time information to each log record. Is this possible?

---

<div class="post-metadata">

**Author:** ![amy.blais](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/amy.blais/32/7481_2.png) [@amy.blais](https://forum.mattermost.com/u/amy.blais)\
**Post date:** [January 25, 2019, 5:42pm UTC](https://forum.mattermost.com/t/add-time-information-to-the-log/6570/2 "2019-01-25T17:42:37Z")

</div>

Hi @Babbles,

This Github Issue might help: [https://github.com/mattermost/mattermost-server/issues/9037](https://github.com/mattermost/mattermost-server/issues/9037).

---

<div class="post-metadata">

**Author:** ![Babbles](https://avatars.discourse-cdn.com/v4/letter/b/94ad74/32.png) [@Babbles](https://forum.mattermost.com/u/Babbles)\
**Post date:** [January 30, 2019, 12:22am UTC](https://forum.mattermost.com/t/add-time-information-to-the-log/6570/3 "2019-01-30T00:22:19Z")

</div>

If I don’t use JSON format, I was able to leave the date and time information.
