Results 1 to 2 of 2

Thread: IceGrid node: does not stream all traces to file?

  1. #1
    n2503v is offline Registered User
    Name: Alex Makarenko
    Organization: ACFR, University of Sydney
    Project: Orca
    Join Date
    Jun 2005
    Posts
    134

    IceGrid node: does not stream all traces to file?

    Hi,
    I set the following properties in icegridnode config file:
    IceGrid.Node.RedirectErrToOut=1
    IceGrid.Node.Trace.Activator=2
    Ice.StdOut=...
    Ice.StdErr=...

    The "err" file is empty, as expected.
    The "out" file is not empty and contains the first few lines of the server's stdout after activation. After that the output of the servers go to their individual "out" files.
    However, the output of the node itself does not appear in the "out" file.
    e.g. the traces shown below are not in the file but do appear when I run the node without the Ice.StdOut property.

    Is this the expected behavior?
    Ice-3.4.1, Linux

    thanks,
    Alex


    -- 04/08/11 20:58:41.690 icegridnode: Activator: deactivating `xx.xx' using process proxy
    -- 04/08/11 20:58:41.700 icegridnode: Activator: sent SIGTERM to server `xx.xx' (pid = 7586)
    -! 04/08/11 20:58:41.700 icegridnode: warning: exception occurred while deactivating `xx.xx' using process proxy:
    OutgoingAsync.cpp:639: Ice::FacetNotExistException:
    facet does not exist:
    identity: `xx.xx/admin'
    facet: Process
    operation: shutdown
    -- 04/08/11 20:58:42.549 icegridnode: Activator: detected termination of server `xx.xx'
    Alex Makarenko
    Marathon Robotics
    project: multi-robot systems

  2. #2
    bernard's Avatar
    bernard is offline ZeroC Staff
    Name: Bernard Normier
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Palm Beach Gardens, FL
    Posts
    1,294
    Hi Alex,

    I would expect all trace output of the IceGrid node to go to your Ice.StdErr file, and not the Stdout file, since the default logger writes to stderr.

    IceGrid.Node.RedirectErrToOut is only for the servers started by the IceGrid node, not the IceGrid node itself.

    On Linux, it would be even more common to run your icegridnode as a daemon and direct the logger (trace) output to the system log, with Ice.UseSyslog=1.

    Best regards,
    Bernard
    Bernard Normier
    ZeroC, Inc.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Logging all calls for IceGrid node servers
    By cfrauenberger in forum Help Center
    Replies: 4
    Last Post: 01-24-2011, 04:33 AM
  2. How to upload a file through stream?
    By Jiangyubao in forum Help Center
    Replies: 2
    Last Post: 10-23-2008, 09:09 PM
  3. Can I deploy SessionManager to IceGrid node?
    By Jiangyubao in forum Help Center
    Replies: 2
    Last Post: 10-23-2008, 09:03 PM
  4. Replies: 1
    Last Post: 12-07-2006, 10:23 PM
  5. Replies: 3
    Last Post: 05-28-2006, 09:43 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •