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 the remaining properties after importing the profile, using the Log Profile Configuration wizard.
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.
You can also create a log profile using the New Log Profile wizard.
Creating a log profile using the New Log Profile wizard
In EAServer Manager, highlight the Log Profiles folder, and select File | New Log Profile Wizard.
The wizard guides you through the process of creating a log profile.
Configuring log profiles
To configure log profiles, you can use either the Log Profile Configuration wizard or the Log Profile Properties page. The Log Profile Configuration wizard guides you through the basic steps required to configure a log profile for an EAS, Java Logging, or Log4j logging subsystem.
From within EAServer Manager, display the list of log profiles by expanding the Log Profiles folder.
Highlight the log profile you want to configure.
Select File | Configuration Wizard or File | Properties.
To find property descriptions for Log4j and Java Logging subsystems, see:
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 | Configuration Wizard. Edit the properties described in “Category properties”.
You can also add new categories by highlighting Categories in the left pane and choosing File | New Log Category Wizard.
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 | Configuration Wizard. Edit the properties described in “Handler properties”.
You can also add new handlers by highlighting Handlers in the left pane and choosing File | New Log Handler Wizard.
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 | Configuration Wizard. Edit the properties described in “Formatter properties”.
You can also add new formatters by highlighting Formatters in the left pane and choosing File | New Log Formatter Wizard.
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 directory to export the file to, then choose Save. EAServer Manager creates profile.props in the specified directory, where profile is the name of the logging profile.
Copyright © 2005. Sybase Inc. All rights reserved. |