Skip to main content
Summary How to enable logging for an Orbix process?
Article Number 13329
Environment UNIX Windows Orbix 6.x
Question/Problem Description How to enable logging for an Orbix process?
How do I get an Orbix process to output to a log file?
Clarifying Information
Error Message
Defect/Enhancement Number
Cause
Resolution

To enable logging, the Orbix simple_persistent demo can be taken as an example: The server from the demo is run on windows with the following command:
"java -classpath .\\java\\classes;%CLASSPATH% simple_persistent.Server -ORBname simple_orb [-file <objref-filename>] "

So the orbname used is simple_orb. Therefore, the following configuration scope needs to be added to the configuration file:

simple_orb
{
    event_log:filters = ["*=*"];
    plugins:local_log_stream:filename = "C:\\Orbix6.3.3\\asp\\6.3\\demos\\corba\\standard\\simple_persistent\\simple_persistent.log";
};

The logging level is specified by the event_log:filters variable. In the above example its set to the maximum level. This may not be suitable for a production system as the log files may be too large. The plugins:local_log_stream:filename configuration variable then specifies the location where the logging is been output. 
Additional logging can be output to the command prompt using the line: "-ORBevent_log:filters *=*". So in the above example, the command to run the server would now be: "C:\\Iona\\Orbix6.3.3\\asp\\6.3\\demos\\corba\\standard\\simple_persistent>java -classpath .\\java\\classes;%CLASSPATH% simple_persistent.Server -ORBevent_log:filters *=* -ORBname simple_orb -file test.ior". The configuration scope simple_orb in the Orbix domain configuration would have to be commented out for this to work correctly.

Workaround
Notes There is additional information regarding how to enable logging in the Orbix Administrators guide in the chapter "Configuring Orbix Logging".
This includes information on various logging levels  and the different subsystems that logging can be enabled for. Its worth noting that the additional logging can be specified for the command line using the line: -ORBevent_log:filters *=*.
Attachment
Created date: 06 September 2011
Last Modified: 13 February 2013
Last Published: 12 May 2012
First Published date: 09 September 2011

#Orbix
#KnowledgeDocs