Actions, status, and errors within your application are tracked by WebLogic Server log messages. The following topics describes how to turn on message logging for your Workshop for WebLogic applications.
You can configure logging settings by either (1) using the WebLogic Server Administration Console, (2) editing the domain configuration file directly, or (3) through the WebLogic Scripting Tool (WLST).
To open the Administration Console for a given domain, there must already be a running server instance within that domain. To open the Administration Console, either visit http://localhost:7001/console or double-click a server on the Servers tab and then click the link Open WebLogic Server Admin Console.
Follow the instructions at Create log filters in the WebLogic Server documentation to add a logging filter to the domain. For example, the following logging filter would turn on logging for all packages beginning with "com.bea" and "org.apache.beehive"
(SUBSYSTEM LIKE 'com.bea.%') OR (SUBSYSTEM LIKE 'org.apache.beehive.%')
To add a logging filter manually, edit the domain's config.xml file. The config.xml file resides at <domain_home>/config/config.xml.
For example, adding the following XML snippet to the config.xml file (added as a child of the <domain> element), is equivalent to adding the filter expression (SUBSYSTEM LIKE 'com.bea.%') OR (SUBSYSTEM LIKE 'org.apache.beehive.%') using the Administration Console (as described above). When you edit the config.xml file manually, you must restart the server for the changes to take effect.
<log-filter> <name>beehive_logFilt</name> <filter-expression>(SUBSYSTEM LIKE 'com.bea.%') OR (SUBSYSTEM LIKE 'org.apache.beehive.%')</filter-expression> </log-filter>
For information on using the WLST to configure logging, see Automating WebLogic Server Administration Tasks in the WebLogic Server documentation.
WebLogic Server documentation: Configuring WebLogic Logging Services
WebLogic Server documentation: Create log filters
WebLogic Server documentation: Automating WebLogic Server Administration Tasks