Return-Path: X-Original-To: apmail-felix-commits-archive@www.apache.org Delivered-To: apmail-felix-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CA08ED580 for ; Fri, 5 Oct 2012 17:20:05 +0000 (UTC) Received: (qmail 84180 invoked by uid 500); 5 Oct 2012 17:20:04 -0000 Delivered-To: apmail-felix-commits-archive@felix.apache.org Received: (qmail 83444 invoked by uid 500); 5 Oct 2012 17:20:03 -0000 Mailing-List: contact commits-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list commits@felix.apache.org Received: (qmail 83244 invoked by uid 99); 5 Oct 2012 17:20:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Oct 2012 17:20:03 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Oct 2012 17:20:02 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 049CA2388A40 for ; Fri, 5 Oct 2012 17:19:19 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1394664 - /felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/ComponentTestBase.java Date: Fri, 05 Oct 2012 17:19:18 -0000 To: commits@felix.apache.org From: djencks@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20121005171919.049CA2388A40@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: djencks Date: Fri Oct 5 17:19:18 2012 New Revision: 1394664 URL: http://svn.apache.org/viewvc?rev=1394664&view=rev Log: include milliseconds in test logging Modified: felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/ComponentTestBase.java Modified: felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/ComponentTestBase.java URL: http://svn.apache.org/viewvc/felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/ComponentTestBase.java?rev=1394664&r1=1394663&r2=1394664&view=diff ============================================================================== --- felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/ComponentTestBase.java (original) +++ felix/trunk/scr/src/test/java/org/apache/felix/scr/integration/ComponentTestBase.java Fri Oct 5 17:19:18 2012 @@ -38,6 +38,7 @@ import java.io.PrintStream; import java.io.PrintWriter; import java.io.StringWriter; import java.lang.reflect.Field; +import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; @@ -596,6 +597,7 @@ public abstract class ComponentTestBase public static class Log implements LogListener { + private final SimpleDateFormat _sdf = new SimpleDateFormat("HH:mm:ss,S"); private final List m_warnings = Collections.synchronizedList( new ArrayList() );// private final static PrintStream _out = new PrintStream(new BufferedOutputStream(new FileOutputStream( FileDescriptor.err), 128)); @@ -609,7 +611,7 @@ public abstract class ComponentTestBase StringWriter sw = new StringWriter(); sw.append( "log level: " + entry.getLevel() ); sw.append(" D="); - sw.append(new Date(entry.getTime()).toString()); + sw.append(_sdf.format( new Date(entry.getTime()))); sw.append(", T=" + Thread.currentThread().getName()); sw.append(": "); sw.append(entry.getMessage());