Archived

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

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?

Comments

  • mes
    mes California
    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