5 commons-logging.properties

The commons-logging.properties file is used to specify the WebCenter Sites logging system via the org.apache.commons.logging.Log property. Newly installed WebCenter Sites systems use Apache log4j, which is specified as follows:

org.apache.commons.logging.Log=com.fatwire.cs.core.logging.Log4JLogger

More information about Apache log4j is available in Chapter 12, "log4j.properties."

A large variety of other loggers are available in the public domain. You can also write your own loggers if the features sought are not present in any available loggers. If you choose to use Commons Logging with loggers other than log4j, you can still use the Property Editor to view and change log settings.

If the need arises to switch back to the previous Content Server 7.6 Commons Logging system, you will have to manually set org.apache.commons.logging.Log to one of the class names listed below:

The commons-logging.properties file lists the logging properties that can be modified for WebCenter Sites. The properties are organized by function on the following tabs in the Property Editor:

5.1 AsyncLog Tab

Properties on this tab are deprecated.

Table 5-1 Properties in commons-logging.properties: AsyncLog Tab

Property Description

logging.interval

Deprecated.

Specifies the time interval (in milliseconds) between writes to the log file.

Default value: 5000


5.2 Factory Tab

Table 5-2 Properties in commons-logging.properties: Factory Tab

Property Description

org.apache.commons.logging.Log

Specifies the class name implementing the org.apache.commons.logging.Log interface that the default commons-logging log factory will use as the logger.

Default value: com.fatwire.cs.core.loggingTraditionalLog

The default value names a WebCenter Sites enhanced logger that supports additional features not necessarily supported by other loggers, including browser-based retrieval of the log file, rolling logs, and timestamps.

Note: Before modifying the value, consult the commons-logging documentation.

org.apache.commons.logging.LogFactory

Enables a special publishing logger that prints the pubsessionid in each log message when a publishing event is in progress. Use this logger to analyze publishing failures.

This property must be manually added to commons-logging.properties.

Legal values: com.fatwire.cs.core.logging.ContextAwareLogFactory

Note: Enabling this logger automatically disables per-client logging (the value of the logging.per-client-log property is ignored).


5.3 Loggers Tab

Table 5-3 Properties in commons-logging.properties: Loggers Tab

Property Description

com.fatwire.logging.cs

Specifies the log severity for the generic WebCenter Sites logger. Messages written to this logger relate to the core WebCenter Sites functionality, or they have not been assigned a more appropriate logger.

Possible values: TRACE, DEBUG, INFO, WARN, ERROR, FATAL

Default value: INFO

com.fatwire.logging.cs.auth

Specifies the log severity for user authentication and user authorization messages. Messages written to this logger relate to user login, user ACLs and user roles.

Possible values: TRACE, DEBUG, INFO, WARN, ERROR, FATAL

Default value: INFO

com.fatwire.logging.cs.blobserver

Specifies the log severity for BlobServer debug messages. Messages written to this logger relate to the addition, retrieval, and modification of data in WebCenter Sites page caches.

Possible values: TRACE, DEBUG, INFO, WARN, ERROR, FATAL

Default value: INFO

com.fatwire.logging.cs.cache.page

Specifies the log severity for page cache debug messages. Messages written to this logger relate to the addition, retrieval, and modification of data in WebCenter Sites page caches.

Possible values: TRACE, DEBUG, INFO, WARN, ERROR, FATAL

Default value: INFO

com.fatwire.logging.cs.cache.resultset

Specifies the log severity for resultset cache debug messages. Messages written to this logger relate to the addition, retrieval, and modification of data in WebCenter Sites resultset caches.

Possible values: TRACE, DEBUG, INFO, WARN, ERROR, FATAL

Default value: INFO

com.fatwire.logging.cs.core.http.HttpAccess

Logger used by the HttpAccess API to record errors and warnings encountered during HTTP access. This log produces HTTP Request and Response information, including headers, parameters, and body content. DEBUG generally produces large amounts of log messages.

Possible values: TRACE, DEBUG, INFO, WARN, ERROR, FATAL

Default value: INFO

com.fatwire.logging.cs.core.uri.assembler

Logger used by the URI assembler engine and all assemblers.

Possible values: TRACE, DEBUG, INFO, WARN, ERROR, FATAL

Default value: INFO

com.fatwire.logging.cs.core.uri.definition

Logger used by URI definitions and related implementations.

Possible values: TRACE, DEBUG, INFO, WARN, ERROR, FATAL

Default value: INFO

com.fatwire.logging.cs.db

Specifies the log severity for database access messages. Messages written to this logger relate to database access, queries and statement execution. It can be very helpful to use this logger to debug database queries that are not behaving as expected.

Possible values: TRACE, DEBUG, INFO, WARN, ERROR, FATAL

Default value: INFO

com.fatwire.logging.cs.errno

Logger used to display information related to setting an error number. Messages written by this logger relate to the values set for the Variables.errno and Variables.errdetail WebCenter Sites variables. For more information about setting error numbers, see the Oracle Fusion Middleware WebCenter Sites Developer's Guide and the Oracle WebCenter Sites Tag Reference.

Possible values: TRACE, DEBUG, INFO, WARN, ERROR, FATAL

Default value: INFO

com.fatwire.logging.cs.event

Specifies the log severity for WebCenter Sites event engine messages. Messages written to this logger relate to the invocation of events by WebCenter Sites.

Possible values: TRACE, DEBUG, INFO, WARN, ERROR, FATAL

Default value: INFO

com.fatwire.logging.cs.export

Specifies the log severity for WebCenter Sites page export engine messages. Messages written to this logger relate to the invocation of events by WebCenter Sites.

Possible values: TRACE, DEBUG, INFO, WARN, ERROR, FATAL

Default value: INFO

com.fatwire.logging.cs.filelock

Specifies the log severity for file locking messages.

Possible values: TRACE, DEBUG, INFO, WARN, ERROR, FATAL

Default value: INFO

com.fatwire.logging.cs.firstsite.filter

Logger for FirstSite II filters.

Possible values: TRACE, DEBUG, INFO, WARN, ERROR, FATAL

Default value: INFO

com.fatwire.logging.cs.install

Specifies the log severity for the WebCenter Sites installer's messages. Messages are only written to this log during installation.

Possible values: TRACE, DEBUG, INFO, WARN, ERROR, FATAL

Default value: INFO

com.fatwire.logging.cs.jsp

Specifies the log severity for WebCenter Sites jsp element debug information. Messages written to this logger relate to the invocation of JSP elements by WebCenter Sites.

Possible values: TRACE, DEBUG, INFO, WARN, ERROR, FATAL

Default value: INFO

com.fatwire.logging.cs.realtime

Logs operations that take place during the RealTime publishing process.

Possible values: TRACE, DEBUG, INFO, WARN, ERROR, FATAL

Default value: INFO

com.fatwire.logging.cs.request

Specifies the log severity for request processing messages.

Possible values: TRACE, DEBUG, INFO, WARN, ERROR, FATAL

Default value: INFO

com.fatwire.logging.cs.satellite

Generic logger for Satellite Server. Messages logged with this logger pertain to system configuration.

Possible values: TRACE, DEBUG, INFO, WARN, ERROR, FATAL

Default value: INFO

com.fatwire.logging.cs.satellite.cache

This logger for Satellite Server deals with information relating to the parsing of objects that can be cached, as well as their life cycle in the cache.

Possible values: TRACE, DEBUG, INFO, WARN, ERROR, FATAL

Default value: INFO

com.fatwire.logging.cs.satellite.host

This logger for Satellite Server is dedicated to logging information that relates to communication between Satellite Server and its host WebCenter Sites.

Possible values: TRACE, DEBUG, INFO, WARN, ERROR, FATAL

Default value: INFO

com.fatwire.logging.cs.satellite.request

This logger for Satellite Server is dedicated to logging information that relates to processing requests from the client.

Possible values: TRACE, DEBUG, INFO, WARN, ERROR, FATAL

Default value: INFO

com.fatwire.logging.cs.session

Specifies the log severity for the WebCenter Sites session logger. Messages written to this logger relate to session creation, modification, and access.

Possible values: TRACE, DEBUG, INFO, WARN, ERROR, FATAL

Default value: INFO

com.fatwire.logging.cs.sync

Specifies the log severity for WebCenter Sites cluster synchronization messages. Messages written to this logger relate to cluster sync behavior of WebCenter Sites.

Possible values: TRACE, DEBUG, INFO, WARN, ERROR, FATAL

Default value: INFO

com.fatwire.logging.cs.sysinfo

Specifies the log severity for capturing system information on the WebCenter Sites installation. This logger is used by the System Tools utility, which is available on the Admin tab, in the WebCenter Sites administrator's interface. For more information about System Tools, see "System Tools" in the Oracle Fusion Middleware WebCenter Sites Administrator's Guide.

Possible values: TRACE, DEBUG, INFO, WARN, ERROR, FATAL

Default value: INFO

com.fatwire.logging.cs.time

Specifies the log severity for WebCenter Sites time and performance debug information. Messages written to this logger include information that can be used to tune the performance of pages and of WebCenter Sites in general.

To log the execution time for pages and pagelets, set this property to DEBUG. When the pages and pagelets are executed, a message similar to the following will be returned:

"Execute page OpenMarket/Xcelerate/Util/getCurrentUser Hours: 0 Minutes: 0 Seconds: 0:002"

Note: Pages are executed only if they are not found in cache.

Possible value: TRACE, DEBUG, INFO, WARN, ERROR, FATAL

Default value: INFO

com.fatwire.logging.cs.visitor.object

Logger for tracking the visitor object life cycle.

Possible values: TRACE, DEBUG, INFO, WARN, ERROR, FATAL

Default value: INFO

com.fatwire.logging.cs.visitor.ruleset

Logger for rule set compilation.

Possible values: TRACE, DEBUG, INFO, WARN, ERROR, FATAL

Default value: INFO

com.fatwire.logging.cs.xcelerate

Logger for Xcelerate.

Possible values: TRACE, DEBUG, INFO, WARN, ERROR, FATAL

Default value: INFO

com.fatwire.logging.cs.xcelerate.advantage.recommendation

Logger for recommendation processing.

Possible values: TRACE, DEBUG, INFO, WARN, ERROR, FATAL

Default value: INFO

com.fatwire.logging.cs.xcelerate.approval

Logger for asset approval processing.

Possible values: TRACE, DEBUG, INFO, WARN, ERROR, FATAL

Default value: INFO

com.fatwire.logging.cs.xcelerate.asset

Logger for generic asset processing.

Possible values: TRACE, DEBUG, INFO, WARN, ERROR, FATAL

Default value: INFO

com.fatwire.logging.cs.xcelerate.assetmaker

Logger for assetmaker processing.

Possible values: TRACE, DEBUG, INFO, WARN, ERROR, FATAL

Default value: INFO

com.fatwire.logging.cs.xcelerate.publish

This logger captures publishing logs.

Possible values: TRACE, DEBUG, INFO, WARN, ERROR, FATAL

Default value: INFO

Note: DEBUG and TRACE settings produce a large quantity of logs and can severely impact performance.

com.fatwire.logging.cs.xcelerate.template

Logger for Template, CSElement, and SiteEntry asset processing.

Possible values: TRACE, DEBUG, INFO, WARN, ERROR, FATAL

Default value: INFO

com.fatwire.logging.cs.xml

Specifies the log severity for WebCenter Sites XML element debug information. Messages written to this logger relate to the parsing and evaluation of XML elements. It should be noted that enabling this debug flag will cause WebCenter Sites to use a validating XML parser instead of the default non-validating parser. This can have effects on rendered pages. Consult the documentation for details.

Possible values: TRACE, DEBUG, INFO, WARN, ERROR, FATAL

Default value: INFO

com.fatwire.search.asset

Logger used by asset-related search.

Possible values: TRACE, DEBUG, INFO, WARN, ERROR, FATAL

Default value: INFO

org.apache.http

Top-level logger used by HttpComponents library. For more information, see Apache HttpComponents documentation.

Possible values: TRACE, DEBUG, INFO, WARN, ERROR, FATAL

Default value: INFO

org.apache.http.client

This logger is used by the HttpComponents library for context logging. For more information, see Apache HttpComponents documentation.

Possible values: TRACE, DEBUG, INFO, WARN, ERROR, FATAL

Default value: INFO

org.apache.http.impl.client

This logger is used by the HttpComponents library for context logging. For more information, see the Apache HttpComponents documentation.

Possible values: TRACE, DEBUG, INFO, WARN, ERROR, FATAL

Default value: INFO

org.apache.http.impl.conn

This logger is used by the HttpComponents library for connection management. For more information, see the Apache HttpComponents documentation.

Possible values: TRACE, DEBUG, INFO, WARN, ERROR, FATAL

Default value: INFO

org.apache.http.headers

This logger is used to log only the http headers. For more information, see the Apache HttpComponents documentation.

Possible values: TRACE, DEBUG, INFO, WARN, ERROR, FATAL

Default value: INFO

org.apache.http.wire

This logger is used to log all data transmitted to and from servers when executing HTTP requests. This logger should be enabled only for debugging, as it will produce an extremely large amount of log data, some of it in binary format. For more information, see the Apache HttpComponents documentation.

Possible values: TRACE, DEBUG, INFO, WARN, ERROR, FATAL

Default value: INFO


5.4 Traditional Log Tab

The table below lists properties that are specific to TraditionalLog, the default logger specified in the property org.apache.commons.logging.Log. TraditionalLog supports numerous features that other loggers might not support. In your Spark installation, you may choose to use a different logger with your own set of properties.

Table 5-4 Properties in commons-logging.properties: Traditional Log Tab

Property Description

logging.file

Specifies the full path to the log file. It is required and should be set to a different value for each VM to avoid conflicts.

Note: This value must be specified or logging will fail.

logging.format

Specifies the java.text.SimpleDateFormat that will be used in timestamps that are written to the log file. Consult the API documentation for java.text.SimpleDateFormat for syntax information. If not specified, the default SimpleDateFormat will be used.

logging.maxlogsize

Specifies the maximum size of the log file in bytes. Once the log file grows to the size specified, it will either be rolled or deleted. Set it to -1 to allow the log to grow indefinitely.

Default value: 10MB

logging.per-client-log

Specifies whether a log file will be kept for each distinct IP address that requests data from WebCenter Sites. This property allows the use of CatalogManager to retrieve the log file from a web browser.

When this property is set to true, WebCenter Sites creates a log file for each browser IP address. Each file is stored in the same directory as the WebCenter Sites log file and is created according to the following naming convention: futuretense.IPaddress.txt. You can then use the exportlog argument of the CATALOGMANAGER tag to retrieve the log file for the IP address of the browser that you are using.

Possible values: true | false

Note: Per-client logging is automatically disabled if the ContextAwareLogFactory publishing logger is enabled (i.e., the value of logging.per-client-log is ignored when org.apache.commons.logging.LogFactory is set to enable the ContextAwareLogFactory).

logging.roll

Specifies how many logs will be kept when rolling the log file. Previous versions will be renamed and once all available versions are used, the oldest log will be deleted. Set to 0 to disable rolling of the log file. Set it to a positive integer to specify the number of logs to keep.

Default value: 0

logging.timestamp

Specifies whether or not the timestamp will be written to the log file for each logging entry.

Possible values: true | false

Default value: true


5.5 User Defined Tab

By default, this tab contains the following properties:

Table 5-5 Properties in commons-logging.properties: User Defined Tab

Property Description

com.fatwire.logging.ui.model

This logger is used by the user interface model components.

Possible values: TRACE, DEBUG, INFO, WARN, ERROR, FATAL

Default value: INFO

com.fatwire.logging.ui.phase

This logger is used by DebugPhaseListener to display the phase of the JSF life cycle.

Possible values: TRACE, DEBUG, INFO, WARN, ERROR, FATAL

Default value: INFO

com.fatwire.logging.ui.view

This logger is used by the user interface view components. The intended use of this logger is in debugging user interface components and their life cycle.

Possible values: TRACE, DEBUG, INFO, WARN, ERROR and FATAL

Default value: INFO

com.fatwire.search.lucene

This logger is used by the Lucene integration.

Possible values: TRACE, DEBUG, INFO, WARN, ERROR, FATAL

Default value: INFO