Home Help Center

Ice::Logger cloneWithPrefix

mwilsonmwilson Member Mark WilsonOrganization: Integrated Computer Solutions, Inc.Project: TBD ✭✭✭
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?


  • mesmes CaliforniaAdministrators, ZeroC Staff Mark SpruiellOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff
    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.

Sign In or Register to comment.