You can configure log profiles in EAServer Manager or in a text editor.
Defining 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:
Copy the predefined log profile that is closest to the characteristics that you want, specifying a new file name with the .props extension.
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.
Import the profile to EAServer Manager as follows:
Start EAServer Manager if it is not already running.
Highlight the Log Profiles folder in the left pane and choose File | Import.
Specify the file name you created and click OK.
You should see the new profile in the Log Profiles folder.
Configuring 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:
Highlight the profile name and choose File | Properties.
Highlight the Configuration tab.
Edit the properties in their text format. For property descriptions, see:
Configuring EAS log profiles
EAServer Manager provides graphical controls to configure properties for the EAS logging subsystem. Edit the profile properties as follows:
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.
To change the other properties, double-click the log profile name in the left pane to display the following:
Categories, which map to the various subsystems of EAServer. Different subsystems can use different category names for log messages, and you can configure the output for each category. Table 3-13 lists the category names used in EAServer. To change these properties:
Highlight Categories in the left pane to display the logging categories in the right pane.
Highlight the category name in the right pane and choose File | Properties. Edit the properties described in “Category properties”.
You can also add new categories by highlighting Categories in the left pane and choosing File | New.
Handlers, which define how messages are logged. Associating a handler with a category determines how messages from that category are logged. To change these properties:
Highlight Handlers in the left pane to display the handler names in the right pane.
Highlight the handler name in the right pane and choose File | Properties. Edit the properties described in “Handler properties”.
You can also add new handlers by highlighting Handlers in the left pane and choosing File | New.
Formatters, which specify a format pattern for messages. To change these properties:
Highlight Formatters in the left pane to display the formatter names in the right pane.
Highlight the formatter name in the right pane and choose File | Properties. Edit the properties described in “Formatter properties”.
You can also add new formatters by highlighting Formatters in the left pane and choosing File | New.
Exporting 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:
Highlight the Log Profile and Choose File | Export.
Specify the file name and path, then choose Save.
Copyright © 2003. Sybase Inc. All rights reserved. |
![]() |