Configure logging for internal Web server HTTP transports

An independent logging mechanism is available to monitor the HTTP transport. To configure logging for internal HTTP transports, add these custom properties to one of the HTTP transports in your Web container:

Property name Valid Values Description Default Scope
ErrorLogDisable true/false Enable or disable logging true (logging disabled) Virtual/Global
ErrorLog filename The location of the log file logs/app_server/http.log1  
LogLevel

  • debug 2
  • info
  • warn
  • error
  • crit

The level of messages to log warn Virtual/Global

1 Relative paths are qualified from the root directory of your instance. For example, for the default application server in the default instance of WebSphere Application Server, the default location for the log file is /QIBM/UserData/WebAS5/Base/default/logs/server1/http.log.

2 Each level also logs messages for the levels below it. For example, the warn level logs warn, error, and crit messages. The debug level logs all messages.

Enable HTTP transport logging

To enable HTTP transport logging, follow these steps:

  1. Start the administrative console.
  2. In the topology tree, expand Servers and click Application Servers.
  3. Click the name of the application server for which you want to disable HTTP transport logging.
  4. On the application server page, click Web Container under Additional Properties.
  5. On the Web Container page, click HTTP Transports.
  6. On the HTTP Transports page, select one of the HTTP transports.
  7. On the transport page, click Custom Properties.
  8. To enable error logging, add the ErrorLogDisable custom property to one of the HTTP transports in your Web container and set the value to false:
    1. Click New.
    2. For the property name, specify ErrorLogDisable.
    3. For the value, specify false.
    4. Click OK.

  9. (Optional) Specify the ErrorLog custom property:
    1. Click New.
    2. For the property name, specify ErrorLog.
    3. For the value, specify a file name.
    4. Click OK.

  10. (Optional) Specify the LogLevel custom property:
    1. Click New.
    2. For the property name, specify LogLevel.
    3. For the value, specify the level of logging you want to record.
    4. Click OK.

  11. Save the configuration.
  12. Restart the application server.

Disable HTTP transport logging

To disable HTTP transport logging, follow these steps:

  1. Start the administrative console.
  2. In the topology tree, expand Servers and click Application Servers.
  3. Click the name of the application server for which you want to disable HTTP transport logging.
  4. On the application server page, click Web Container under Additional Properties.
  5. On the Web Container page, click HTTP Transports.
  6. On the HTTP Transports page, click the transport that includes the ErrorLogDisable property.
  7. On the transport page, click Custom Properties.
  8. Click the ErrorLogDisable custom property.
  9. On the property page, specify a valu of true for the ErrorLogDisable property.
  10. Save the configuration.
  11. Restart the application server.