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 CCD8FDB for ; Mon, 20 Aug 2012 19:18:05 +0000 (UTC) Received: (qmail 3358 invoked by uid 500); 20 Aug 2012 19:18:02 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 3309 invoked by uid 500); 20 Aug 2012 19:18: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 3298 invoked by uid 99); 20 Aug 2012 19:18:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Aug 2012 19:18: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 (athena.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:17:52 +0000 MIME-version: 1.0 Content-type: multipart/alternative; boundary="Boundary_(ID_QyX0Dde4n1e6tnuk/6IaXg)" 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 <0M92000FIIVC1CM9@mail-out.apple.com> for users@tomcat.apache.org; Mon, 20 Aug 2012 12:17:27 -0700 (PDT) X-AuditID: 11807134-b7f866d000002583-0c-50328d47a3aa Received: from [17.151.78.80] (Unknown_Domain [17.151.78.80]) by relay14.apple.com (Apple SCV relay) with SMTP id 9A.8A.09603.74D82305; Mon, 20 Aug 2012 12:17:27 -0700 (PDT) From: John Byrne Subject: %{xxx}t not working Date: Mon, 20 Aug 2012 12:17:26 -0700 References: To: users@tomcat.apache.org Message-id: <361B4E7A-9588-4562-9410-FB35B570A295@apple.com> X-Mailer: Apple Mail (2.1278) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprBLMWRmVeSWpSXmKPExsUiON0vQNe91yjAoO0Up8XWj18ZHRg9Nj7r Zg5gjOKySUnNySxLLdK3S+DKuP12E2PBEbWKW/PusjUwPlDsYuTkkBAwkfg5+xA7hC0mceHe erYuRi4OIYH1jBIXr+xnAkmwCahL7Ol4zAZiMwskSDyf8BasQVhARuLMjSNANRwcLAKqEtPn FYKEhQRsJHp2fWAFsUUEpCXerl/CDGLzAsX7G/azQdiGEv9bfjFD7JWVuN08gX0CI88sJBtm ISmDiGtLLFv4GsjmALJ1JCYvZEQVhrA/nj/CtICRbRWjYFFqTmKloYleYkFBTqpecn7uJkZQ eDUUmuxgPPiT/xCjAAejEg/v6emGAUKsiWXFlbmHGCU4mJVEeAWLjQKEeFMSK6tSi/Lji0pz UosPMUpzsCiJ804pA0oJpCeWpGanphakFsFkmTg4pRoYE0Q4s7cHfpm0le293lUJvqS1MYVT fM6Wqix/cNb9PF+y8vYDRX2F2vYOlv/OZ63t4jFqnuEkN7MpYJl2ddXs3Q8kmV5e/3hbV2Gn 4k9Jjrb/5jlNTcWLGvuCv/fHn433Kytb38rd5B4as2+3yK7vc5NYG8M+Z9/KOe7v6eWkPLng dkTW7TAlluKMREMt5qLiRACOcPsNKwIAAA== X-Virus-Checked: Checked by ClamAV on apache.org --Boundary_(ID_QyX0Dde4n1e6tnuk/6IaXg) Content-type: text/plain; CHARSET=US-ASCII Content-transfer-encoding: 7BIT > > Hello Tomcat List, > > 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? > Thank you, > John > > John Byrne > System Administrator, IS&T > john_byrne@apple.com > > > > --Boundary_(ID_QyX0Dde4n1e6tnuk/6IaXg)--