Skip to content Skip to sidebar Skip to footer

Ipython.parallel - Can I Write My Own Log Into The Engine Logs?

I'd like to be able to log outputs from the functions I pass to my engines in the relevant engine logs. I.e.: data = /* my list of data to operate on */ def fn(inval): import l

Solution 1:

You can grab the logger of the current app (i.e. the engine in this case) with:

from IPython.config import Application
log = Application.instance().log

Then log as normal, and it will go to the engine logs.

Post a Comment for "Ipython.parallel - Can I Write My Own Log Into The Engine Logs?"