[omniORB] omniORBpy equivalent of setLogFunction ?

Duncan Grisby duncan at grisby.org
Fri Dec 5 17:31:54 GMT 2003


On Wednesday 3 December, Daniel Greenblatt wrote:

> > Is there any way, using omniORBpy 2.3, to redirect ORB trace output to a
> > file ?

I'm afraid not, no. It's not suitable to export setLogFunction to
Python since executing Python code requires holding the Python
interpreter lock, and the logger is used in some places where it is
already held.

The easy thing to do would be to redirect stderr to a file, but you
can't do that from Python. (You can change Python's stderr, but that
doesn't affect C's stderr.)  You'd have to write a little extension
function to do it.

Cheers,

Duncan.

-- 
 -- Duncan Grisby         --
  -- duncan at grisby.org     --
   -- http://www.grisby.org --



More information about the omniORB-list mailing list