Configuring the server’s log profile  Category names

Chapter 3: Creating and Configuring Servers

Configuring log profiles

You can configure log profiles in EAServer Manager or in a text editor.

StepsDefining a new log profile

The easiest way to define a new log profile is to copy one of the existing definitions to a file, edit the file, then import the definition in Jaguar Manager as follows:

  1. Copy the predefined log profile that is closest to the characteristics that you want, specifying a new file name with the .props extension.

  2. Open the file in a text editor, and change the value of the com.sybase.jaguar.logprofile.name to match the base name. You can edit other properties as well. If using the EAS logging subsystem, you can edit the remaining properties in EAServer Manager after importing the profile. If you are using Log4j or Java Logging, you must edit the properties in text format, whether you are using EAServer Manager or your text editor.

  3. Import the profile to EAServer Manager as follows:

    1. Start EAServer Manager if it is not already running.

    2. Highlight the Log Profiles folder in the left pane and choose File | Import.

    3. Specify the file name you created and click OK.

    4. You should see the new profile in the Log Profiles folder.

StepsConfiguring Java Logging or Log4j log profiles

If you are using Java Logging or Log4j as the subsystem, you must edit the log profile properties in text format, as follows:

  1. Highlight the profile name and choose File | Properties.

  2. Highlight the Configuration tab.

  3. Edit the properties in their text format. For property descriptions, see:

StepsConfiguring EAS log profiles

EAServer Manager provides graphical controls to configure properties for the EAS logging subsystem. Edit the profile properties as follows:

  1. To change the profile description, highlight the log profile name and choose File | Properties. Edit the description in the Log Profile Properties dialog box and click OK.

  2. To change the other properties, double-click the log profile name in the left pane to display the following:

StepsExporting log profiles

You can export log profile settings to a file. This is useful when you want to use the settings to control logging from Java client applications as described in “Using log profiles in Java client applications”. Export log profile settings as follows:

  1. Highlight the Log Profile and Choose File | Export.

  2. Specify the file name and path, then choose Save.





Copyright © 2003. Sybase Inc. All rights reserved. Category names

View this book as PDF