python. How to redirect Maya history?
<p>All Maya script logs and errors printed in history tab. This is output from all commands and python scripts.</p>

<p>For better debugging scripts I want all the logs were sent somewhere on the server. How to intercept and send the output to your script. Then I will do all that is necessary, and the output is either a remote console, or somewhere in the files on the server. </p>

<p>The task to intercept the output. How to do it?</p>

<p><a href="https://i.stack.imgur.com/uvjsl.jpg" rel="nofollow"><img src="https://i.stack.imgur.com/uvjsl.jpg" alt="enter image description here"></a></p>

<p>its sounds like that you need a real-time error tracker like <a href="https://sentry.io/welcome/" rel="nofollow">Sentry</a>
, in Sentry are logging modules that are maked exactly for this reason, communicate Server/Client <a href="https://docs.sentry.io/clients/python/integrations/logging/" rel="nofollow">logging</a> with a richer error/debug handling  </p>

<p>here a example for <a href="http://danostrov.com/2013/02/06/rerouting-the-maya-script-editor-to-a-terminal-and-other-places/" rel="nofollow">Rerouting</a> the Maya Script Editor to a terminal </p>

python debugging logging output maya