Results 1 to 2 of 2

Thread: Ice::Logger cloneWithPrefix

  1. #1
    mwilson is offline Registered User
    Name: Mark Wilson
    Organization: University of Rochester
    Project: Omega EP laser
    Join Date
    Jul 2005
    Location
    Rochester, NY
    Posts
    100

    Ice::Logger cloneWithPrefix

    Could you please provide a little more info about cloneWithPrefix? Is it a method that the Ice run-time would ever call? Is it safe to provide an implementation that just returns a null?
    Mark E. Wilson
    Lead Programmer/Analyst
    Omega EP Project
    Laboratory for Laser Energetics (www.lle.rochester.edu)
    University of Rochester
    Rochester, NY 14623

  2. #2
    mes's Avatar
    mes
    mes is offline ZeroC Staff
    Name: Mark Spruiell
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Feb 2003
    Location
    California
    Posts
    1,445
    Hi Mark,

    This operation was added primarily to support IceBox - it allows each service to have a unique prefix in its log output. If your logger implementation won't be used in an IceBox service, you can return nil. However, to be on the safe side, you can just return a new instance of your logger.

    Regards,
    Mark

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Ice Default Logger usage
    By danleepw in forum Help Center
    Replies: 1
    Last Post: 05-07-2010, 02:42 AM
  2. Another Logger usage question
    By Edward Bishop in forum Help Center
    Replies: 2
    Last Post: 07-25-2007, 05:56 PM
  3. Logger usage?
    By vincei in forum Comments
    Replies: 9
    Last Post: 07-12-2007, 08:07 AM
  4. IceBoxService and Logger
    By xdm in forum Help Center
    Replies: 2
    Last Post: 01-11-2006, 06:34 AM

Posting Permissions

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