For C++, Python, and Ruby, initialize sets the
Ice.ProgramName property to the name of the current program (
argv[0]). In C# and Visual Basic .NET,
initialize sets
Ice.ProgramName to the value of
System.AppDomain.CurrentDomain.FriendlyName.
Ice uses the program name for log messages. Your application code can read this property and use it for similar purposes, for example, in diagnostic or trace messages. (See
Section 30.8.1 for how to access the property value in your program.)
Even though Ice.ProgramName is initialized for you, you can still override its value from a configuration file or by setting the property on the command line.
For Java, the program name is not supplied as part of the argument vector—if you want the program name to appear in Ice log messages, you must set
Ice.ProgramName before initializing a Java communicator.