The following procedure shows you how to configure the log of your PAPI client.
To configure the log of your PAPI client.
-
Create a properties file that contains the properties to configure your PAPI client log.
Create this file in a location that is accessible to your PAPI Client.
For a list of the properties you can include, see
PAPI Client Log Properties
.
-
In PAPI client code add the necessary code to create a Properties object and load it using the
properties file you created.
-
Modify the code in your PAPI client so that it uses the ProcessService constructor that receives a
properties file as an argument.
-
Compile your PAPI client.
For information about how to compile a PAPI client,
see
Compiling a Java PAPI Program
.
The next time you run your PAPI client it logs using the properties you defined.