原本tomcat的日志格式如下:
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="localhost_access_log." suffix=".txt" pattern="%h %l %u %t "%r" %s %b" resolveHosts="false"/>
站在用戶的角度思考問題,與客戶深入溝通,找到金昌網(wǎng)站設(shè)計(jì)與金昌網(wǎng)站推廣的解決方案,憑借多年的經(jīng)驗(yàn),讓設(shè)計(jì)與互聯(lián)網(wǎng)技術(shù)結(jié)合,創(chuàng)造個(gè)性化、用戶體驗(yàn)好的作品,建站類型包括:做網(wǎng)站、
網(wǎng)站設(shè)計(jì)、企業(yè)官網(wǎng)、英文網(wǎng)站、手機(jī)端網(wǎng)站、網(wǎng)站推廣、空間域名、網(wǎng)絡(luò)空間、企業(yè)郵箱。業(yè)務(wù)覆蓋金昌地區(qū)。
我們要在日志中顯示時(shí)間的話,需要添加%T:
下面表是tomcat日志格式各值代表的意思:
Values Description
- %a? Remote IP address?
- %A? Local IP address?
- %b? Bytes sent, excluding HTTP headers, or '' if zero?
- %B? Bytes sent, excluding HTTP headers?
- %h? Remote hostname (or IP address if?enableLookups?for the connector isfalse)
- %H? Request protocol?
- %l? Remote logical username from identd?
- %m? Request method (GET, POST, and so on)?
- %p? Local port on which this request was received?
- %q? Query string (prepended with a '?' if it exists)?
- %r? First line of the request (method and request URI)?
- %s? HTTP status code of the response?
- %S? User session ID?
- %t? Date and time, in Common Log format?
- %u? Remote user that was authenticated (if any)?
- %U? Requested URL path?
- %v? Local server name?
- %D? Time taken to process the request, in milliseconds
- %T? Time taken to process the request, in seconds
- %I? Current request thread name (can compare later with stack t
另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)cdcxhl.cn,海內(nèi)外云服務(wù)器15元起步,三天無理由+7*72小時(shí)售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國(guó)服務(wù)器、虛擬主機(jī)、免備案服務(wù)器”等云主機(jī)租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡(jiǎn)單易用、服務(wù)可用性高、性價(jià)比高”等特點(diǎn)與優(yōu)勢(shì),專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場(chǎng)景需求。
當(dāng)前文章:Tomcat值,改變?nèi)罩镜母袷?創(chuàng)新互聯(lián)
本文地址:
http://weahome.cn/article/ghsis.html