BEA WebLogic Server 7 Wartungshandbuch Seite 151

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 545
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 150
Setting Up HTTP Access Logs
Administration Guide 8-21
http://e-docs.bea.com/wls/docs61/javadocs/weblogic/servlet/l
ogging/FormatStringBuffer.html
).
3. Compile the Java class and add the class to the
CLASSPATH statement used to start
WebLogic Server. You will probably need to modify the
CLASSPATH statements
in the scripts that you use to start WebLogic Server.
Note: Do not place this class inside of a Web Application or Enterprise
Application in exploded or jar format.
4. Configure WebLogic Server to use the extended log format. For more
information, see “Setting Up HTTP Access Logs by Using Extended Log
Format” on page 8-17.
Note: When writing the Java class that defines your custom field, you should not
execute any code that is likely to slow down the system (For instance,
accessing a DBMS or executing significant I/O or networking calls.)
Remember, an HTTP access log file entry is created for every HTTP request.
Note: If you want to output more than one field, delimit the fields with a tab
character. For more information on delimiting fields and other ELF formatting
issues, see Extended Log Format at
http://www.w3.org/TR/WD-logfile-960221.html.
Get Methods of the HttpAccountingInfo Object
The following methods return various data regarding the HTTP request. These
methods are similar to various methods of
javax.servlet.ServletRequest,
javax.servlet.http.Http.ServletRequest, and
javax.servlet.http.HttpServletResponse.
For details on these methods see the corresponding methods in the Java interfaces
listed in the following table, or refer to the specific information contained in the table.
Table 8-2 Getter Methods of HttpAccountingInfo
HttpAccountingInfo Methods
Where to find information on the methods
Object getAttribute(String name);
javax.servlet.ServletRequest
Enumeration getAttributeNames();
javax.servlet.ServletRequest
String getCharacterEncoding();
javax.servlet.ServletRequest
Seitenansicht 150
1 2 ... 146 147 148 149 150 151 152 153 154 155 156 ... 544 545

Kommentare zu diesen Handbüchern

Keine Kommentare