# Displaying python Logging messages into Dash

**URL:** <https://community.plotly.com/t/displaying-python-logging-messages-into-dash/13585>\
**Category:** Dash Python\
**Created:** [September 14, 2018, 3:25pm UTC](https://community.plotly.com/t/displaying-python-logging-messages-into-dash/13585 "2018-09-14T15:25:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![cristina](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/cristina/32/9163_2.png) [@cristina](https://community.plotly.com/u/cristina)\
**Post date:** [September 14, 2018, 3:25pm UTC](https://community.plotly.com/t/displaying-python-logging-messages-into-dash/13585/1 "2018-09-14T15:25:46Z")

</div>

Hi,  
So I’m trying to make my Dash app display the logs that my backend displays into console while running into a Dah page. Does anyone know how I could do this? I’m a a bit out of my depth here…

I’m not sure what type of Loggin handler I’m supposed to use… is it a SocketHandler?

---

<div class="post-metadata">

**Author:** ![Ola](https://avatars.discourse-cdn.com/v4/letter/o/dbc845/32.png) [@Ola](https://community.plotly.com/u/Ola)\
**Post date:** [December 6, 2018, 11:37am UTC](https://community.plotly.com/t/displaying-python-logging-messages-into-dash/13585/2 "2018-12-06T11:37:38Z")

</div>

Hi @cristina! I’m trying to do the same thing… did you manage to figure something out? Could you please share

Thanks!

---

<div class="post-metadata">

**Author:** ![Philippe](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/philippe/32/3521_2.png) [@Philippe](https://community.plotly.com/u/Philippe)\
**Post date:** [December 6, 2018, 5:04pm UTC](https://community.plotly.com/t/displaying-python-logging-messages-into-dash/13585/3 "2018-12-06T17:04:09Z")

</div>

There’s a logger on the dash instance, you can do `app.logger.info('message')`

---

<div class="post-metadata">

**Author:** ![tracek](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/tracek/32/4476_2.png) [@tracek](https://community.plotly.com/u/tracek)\
**Post date:** [March 12, 2019, 10:08pm UTC](https://community.plotly.com/t/displaying-python-logging-messages-into-dash/13585/4 "2019-03-12T22:08:18Z")

</div>

How logging is supposed to work from other modules, ones that main app is importing?

---

<div class="post-metadata">

**Author:** ![Rohith.santosh13](https://avatars.discourse-cdn.com/v4/letter/r/eb8c5e/32.png) [@Rohith.santosh13](https://community.plotly.com/u/Rohith.santosh13)\
**Post date:** [July 6, 2021, 2:28pm UTC](https://community.plotly.com/t/displaying-python-logging-messages-into-dash/13585/5 "2021-07-06T14:28:09Z")

</div>

hi, I tried this way but it prints in my python console, also can you tell me where do I need to place this line of code.
