Archived

This forum has been archived. Please start a new discussion on GitHub.

How to redirect trace message to file?

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:
Ice_UnknownLocalException::__set_state(array(
   '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!

Comments

  • You can install a custom logger that writes the output to a file. See the Logger section in the manual.

    Cheers,

    Michi.