#@+leo
#@+node:0::@file plugins/mod_redirect_to_log.py
#@+body
"""send all output to the log pane"""

from leoPlugins import *
from leoGlobals import *

def onStart (tag,keywords):
	from leoGlobals import redirectStdout,redirectStderr
	redirectStdout() # Redirect stdout
	redirectStderr() # Redirect stderr

if 1: # Register the handlers...
	registerHandler("start2", onStart)
	
	import mod_redirect_to_log
	es("...redirect stdout/stderr to log v1.1: " + plugin_date(mod_redirect_to_log))

#@-body
#@-node:0::@file plugins/mod_redirect_to_log.py
#@-leo
