Home Help Center

How to redirect trace message to file?

JiangyubaoJiangyubao Member Yubao JiangOrganization: www.gliet.edu.cnProject: integrate OSGi & Ice to provice service for PHP ✭✭
Hi, everyone:

We deploy our java servant object to ice grid node, and use php to call it.
And sometimes we receive the following error message in our production environment:
   'unknown' => 'Outgoing.cpp:223: Ice::TimeoutException:
timeout while sending or receiving data',
When this Exception occurs, We do not restart our program, do not change any parameter, and some seconds later, everything is OK.

Will anybody know what is the problem?

In order to find what is the problem, I enable the trace by adding the following statement:
props.setProperty("Ice.Trace.Network", "2");
props.setProperty("Ice.Trace.Locator", "2");
props.setProperty("Ice.Trace.Protocol", "1");

When I startup my program, I can see the trace message from console, but I don't known trace these messages to a file, just work like log4j.

Thanks a lot!


  • michimichi Member Michi HenningOrganization: Triodia TechnologiesProject: I have a passing interest in Ice :-) ✭✭✭
    You can install a custom logger that writes the output to a file. See the Logger section in the manual.


Sign In or Register to comment.