Display non Dash-server console output to Dash interface

I have a bit of code that outputs messages to the console and I would like to display those messages to the Plotly Dash Interface but I’m not sure how to do this because I don’t want to suppress the dash-server messages in order to only get console messages.