Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1B079C037 for ; Mon, 20 Aug 2012 19:47:06 +0000 (UTC) Received: (qmail 7224 invoked by uid 500); 20 Aug 2012 19:47:03 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 7146 invoked by uid 500); 20 Aug 2012 19:47:02 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 7135 invoked by uid 99); 20 Aug 2012 19:47:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Aug 2012 19:47:02 +0000 X-ASF-Spam-Status: No, hits=-2.8 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_HI,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of john_byrne@apple.com designates 17.151.62.49 as permitted sender) Received: from [17.151.62.49] (HELO mail-out.apple.com) (17.151.62.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Aug 2012 19:46:52 +0000 MIME-version: 1.0 Content-type: multipart/alternative; boundary="Boundary_(ID_/XRNz06Xp/TH/y/D1QVS0Q)" Received: from relay14.apple.com ([17.128.113.52]) by mail-out.apple.com (Oracle Communications Messaging Server 7u4-23.01 (7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPS id <0M92000XPK781CS9@mail-out.apple.com> for users@tomcat.apache.org; Mon, 20 Aug 2012 12:46:30 -0700 (PDT) X-AuditID: 11807134-b7f866d000002583-f8-503294159aba Received: from [17.151.78.80] (Unknown_Domain [17.151.78.80]) by relay14.apple.com (Apple SCV relay) with SMTP id 45.67.09603.61492305; Mon, 20 Aug 2012 12:46:30 -0700 (PDT) From: John Byrne Subject: Re: %{xxx}t not working Date: Mon, 20 Aug 2012 12:46:29 -0700 In-reply-to: To: Tomcat Users List References: <361B4E7A-9588-4562-9410-FB35B570A295@apple.com> Message-id: <0E52DD62-3260-4F98-B778-D11E3A067B6A@apple.com> X-Mailer: Apple Mail (2.1278) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrMLMWRmVeSWpSXmKPExsUiON0vQFdsilGAwfLNHBZbP35ldGD02Pis mzmAMYrLJiU1J7MstUjfLoErY/+hw8wFi6wr2te7NDA+Muli5OSQEDCROD7rIROELSZx4d56 ti5GLg4hgfWMEu0PZ7KDJNgE1CX2dDxmA7F5BQwl/rf8Yu5i5OBgFkiQmH/QGiQsLKAg8fnm frASFgFVifVTPjKD2JwCgRK959aygpSLCOhL7HjnBDF+E6PE24n7WSBG2kj0rf7PAnGDrMTt 5gnsExh5ZyHZNgthG0iYWUBbYtnC18wQtp7Ey6Z37JjiuhIX101iXMDItopRsCg1J7HS0EQv saAgJ1UvOT93EyMo6BoKTXYwHvzJf4hRgINRiYf3Qa9RgBBrYllxZe4hRgkOZiURXsFioBBv SmJlVWpRfnxRaU5q8SFGaQ4WJXHeKWVAKYH0xJLU7NTUgtQimCwTB6dUA6NF+bMl79Zm55c9 PMDS2aet901XLe675P7/d/L8XTxinJ703OdtuPBT8KO7U1XkA9u9rsnhbUG7/PNMQ9fEbGKQ OP3h4YlZN5dfuWh1xjTJkDXmk+qjTglFxhufVSvP3u4TF0kvkOVN2rnA4+Oy5wemGSZK2MnM Nua42pz5hd2IbUvR6a98tkosxRmJhlrMRcWJAEuADGA2AgAA --Boundary_(ID_/XRNz06Xp/TH/y/D1QVS0Q) Content-type: text/plain; CHARSET=US-ASCII Content-transfer-encoding: 7BIT I've tried both 7.0.29 and 7.0.8. Thank you for the help. John Byrne John Byrne System Administrator, IS&T john_byrne@apple.com On Aug 20, 2012, at 12:43 PM, Konstantin Kolinko wrote: > 2012/8/20 John Byrne : >> >> >>> I was wondering if you could help me with a server.xml log question. I'm trying to format the times that go into the logs but not having any success. The output always ends up as : ???. I've read that any time format accepted by Java's SimpleDateFormat will work but this one doesn't seem to be working. >>> >>> The time/date format is: %{yyyy-MM-dd'T'HH:mm:ss,SSSZ}t >>> >>> The whole log format line is: >>> >>> >>> Everything works except the %{xxx}t "variable". >>> i.e. the output log line is: >>> ??? thread="http-bio-26258"-exec-10 client=17.169.48.254 url="GET /iTranslate/index HTTP/1.1" query= status=200 time=449 size=8205 agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/536.25 (KHTML, like Gecko) Version/6.0 Safari/536.25" >>> >>> (notice the ??? -- that's where the time/date formatted output should go. >>> >>> >>> Can any one help me with this? > > Your Tomcat version = ? > > IIRC, support for %{xxx}t was added less than a year ago. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > --Boundary_(ID_/XRNz06Xp/TH/y/D1QVS0Q)--