Resin access log format

Source: Internet
Author: User

The access log formatting variables follow the Apache variables:

   
% B Result Content Length
% D Time taken to complete the request in microseconds (since 3.0.16)
% H Remote IP ADDR
% {XXX} I Request Header xxx
% {XXX} o Response Header xxx
% {XXX} c Cookie value xxx
% N Request attribute
% R Request URL
% S Status Code
% {XXX} t Request date with optional time format string.
% T Time taken to complete the request in seconds
% U Remote User
% U Request URI
% V Name of the virtual host serving the request

The default format is:

Default access log format "% H % L % u % t \" % R \ "%> S % B \" % {Referer} I \ "\" % {User-Agent} I \""

 

Timestamp Format String

The timestamp for log tags is a format string which can contain percent codes which are substituted with time and date values.

   
% Day of week (short)
% Day of week (verbose)
% B Day of month (short)
% B Day of month (verbose)
% C Java locale date
% D Day of month (two-digit)
% H 24-hour (two-digit)
% I 12-hour (two-digit)
% J Day of year (three-digit)
% M Month (two-digit)
% M Minutes
% P AM/PM
% S Seconds
% S Milliseconds
% W Week in Year (three-digit)
% W Day of week (one-digit)
% Y Year (two-digit)
% Y Year (four-digit)
% Z Time zone (name)
% Z Time zone (+/-0800)
Example: Typical timestamp for the log tag <resin xmlns = "http://caucho.com/ns/resin">
<Log-handler name = ''Path = 'stderr: 'timestamp =" [% H: % m: % S. % s] "/>
...
</Resin>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.