Return-Path: X-Original-To: apmail-logging-log4j-user-archive@www.apache.org Delivered-To: apmail-logging-log4j-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 921321093C for ; Wed, 4 Sep 2013 12:14:46 +0000 (UTC) Received: (qmail 77897 invoked by uid 500); 4 Sep 2013 12:14:46 -0000 Delivered-To: apmail-logging-log4j-user-archive@logging.apache.org Received: (qmail 77675 invoked by uid 500); 4 Sep 2013 12:14:44 -0000 Mailing-List: contact log4j-user-help@logging.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Log4J Users List" Reply-To: "Log4J Users List" Delivered-To: mailing list log4j-user@logging.apache.org Received: (qmail 77662 invoked by uid 99); 4 Sep 2013 12:14:43 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Sep 2013 12:14:43 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of garydgregory@gmail.com designates 209.85.214.50 as permitted sender) Received: from [209.85.214.50] (HELO mail-bk0-f50.google.com) (209.85.214.50) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Sep 2013 12:14:38 +0000 Received: by mail-bk0-f50.google.com with SMTP id mz11so116870bkb.23 for ; Wed, 04 Sep 2013 05:14:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=eJO/HLYCgFc7L9lcnuDlMVJQhYdpoSyHmz2iEHIX2bw=; b=jjxyxji96TQhxlOg5HBjc5PflwJoBJMUN5XgkXWWIGn0Zd7GApR6Pmlucj7u2t/yxB LbvN4zwQx0LR+OorZJ378bhL5XLzU1vMlOa7oL6JBE8Qbn9pSs5Sn/C9eBUSKa1G2BfI fFM+Y1+1qzykGbfqWanvlyNAsk3VsyheJQ8NE3ih12akNhOdEUKhK/26mP7loO0s6iuI 8RXksba2GV1Nv+clNfMqcokOuOEihFqb1wWnYDBWpCyCEDP1CLNLLOF5TgwNrprFgTpb CkohlqL6+eqUXQkfLmUR8TCDSaYgjLqJVpBpFO+/7iCmg8fQiZs6ceR66zGrsjJQrRf8 EALA== MIME-Version: 1.0 X-Received: by 10.204.66.133 with SMTP id n5mr1341570bki.38.1378296857747; Wed, 04 Sep 2013 05:14:17 -0700 (PDT) Received: by 10.205.6.7 with HTTP; Wed, 4 Sep 2013 05:14:17 -0700 (PDT) In-Reply-To: <5226FE05.3050104@apache.org> References: <52244ECD.4020706@apache.org> <52246CD5.2050408@apache.org> <5226DCFC.6090305@apache.org> <5226FE05.3050104@apache.org> Date: Wed, 4 Sep 2013 08:14:17 -0400 Message-ID: Subject: Re: Using the SLF4J Bridge From: Gary Gregory To: Log4J Users List Content-Type: multipart/alternative; boundary=001a1132f4d09a144f04e58dbe15 X-Virus-Checked: Checked by ClamAV on apache.org --001a1132f4d09a144f04e58dbe15 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Wed, Sep 4, 2013 at 5:31 AM, Francesco Chicchiricc=C3=B2 wrote: > On 04/09/2013 09:10, Francesco Chicchiricc=C3=B2 wrote: > >> On 03/09/2013 22:19, Gary Gregory wrote: >> >>> The tests works for me: >>> >>> [...] >>> My set up: >>> >>> Apache Maven 3.0.5 (**r01de14724cdef164cd33c7c8c2fe1**55faf9602da; >>> 2013-02-19 >>> 08:51:28-0500) >>> Maven home: C:\Java\apache-maven-3.0.5\**bin\.. >>> Java version: 1.7.0_25, vendor: Oracle Corporation >>> Java home: C:\Program Files\Java\jdk1.7.0_25\jre >>> Default locale: en_US, platform encoding: Cp1252 >>> OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows" >>> >> >> Hi, >> I confirm it works on Linux as well, either with Maven 3.1.0 and Maven >> 3.0.5: once seen your configuration, I remembered that I was using a >> mangled Maven 3.1.0 installation, as per blog post [5] (I actually loved >> the idea of colorized output). >> >> At the moment I've switched back to vanilla Maven 3.1.0 and everything i= s >> working fine again. >> > > Update: on Linux, with OpenJDK 6 / Oracle JDK6 everything works fine. > With Oracle JDK 7 everything is fine as well, but with OpenJDK 7 test > execution hangs: > > java version "1.7.0_25" > OpenJDK Runtime Environment (IcedTea 2.3.12) (7u25-2.3.12-4) > OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode) > > Using vanilla or "colorized" Maven 3.1.0 does not make any difference. > > Any clue? On Windows/Oracle, you can hit Ctrl-Break on the command line and get a JVM dump of what all threads are doing. I would try that when the JVM appears hung. Gary > > > Regards. > > On Mon, Sep 2, 2013 at 6:47 AM, Francesco Chicchiricc=C3=B2 >>> wrote: >>> >>> On 02/09/2013 10:39, Francesco Chicchiricc=C5=88 wrote: >>>> >>>> Hi all, >>>>> at Syncope we are currently migrating from Logback to Log4j 2.0, as p= er >>>>> SYNCOPE-405 [1]. >>>>> >>>>> Our codebase is almost completely based on SLF4J API, so we are >>>>> evaluating the SLF4J bridge [2] (e.g. log4j-slf4j-impl): this works >>>>> almost >>>>> fine, except for some classes (like as [3]) where we need to >>>>> programmatically set some logger levels. >>>>> >>>>> I was able to do this with lo4j only by including log4j-core; >>>>> unfortunately it seems that including both log4j-slf4j-impl and >>>>> log4j-core >>>>> generates some kind of block. >>>>> >>>>> Am I doing something wrong? >>>>> >>>>> We are using the last stable release (2.0-beta8). >>>>> >>>>> In order to ease hunting, I have forked the Apache Syncope repositor= y >>>> and >>>> created a LOG4J2 branch on my own fork [4] that is using both >>>> log4j-slf4j-impl and log4j-core: to reproduce, just clone, switch to t= he >>>> LOG4J2 branch and: >>>> >>>> $ mvn -PskipTests >>>> $ cd core >>>> $ mvn clean test >>>> >>>> At this point the first unit test (org.apache.syncope.core.**** >>>> connid.PasswordGeneratorTest) >>>> will hang. >>>> >>>> >>>> Regards. >>>> >>>> [1] https://issues.apache.org/****jira/browse/SYNCOPE-405 >>>> >>>> > >>>> >>>>> [2] http://logging.apache.org/****log4j/2.x/log4j-slf4j-impl/**** >>>>> index.html >>>>> >>>>> > >>>>> [3] https://svn.apache.org/repos/****asf/syncope/trunk/core/src/** >>>>> main/java/org/apache/syncope/****core/init/LoggerLoader.java>>>> ttps://svn.apache.org/repos/**asf/syncope/trunk/core/src/** >>>>> main/java/org/apache/syncope/**core/init/LoggerLoader.java> >>>>> >>>>> >>>>> [4] https://github.com/ilgrosso/****syncope/tree/LOG4J2 >>>> >>>> > >>>> >>> [5] http://aheritier.net/united-**colors-of-maven/ >> > > -- > Francesco Chicchiricc=C3=B2 > > ASF Member, Apache Syncope PMC chair, Apache Cocoon PMC Member > http://people.apache.org/~**ilgrosso/ > > > ------------------------------**------------------------------**--------- > To unsubscribe, e-mail: log4j-user-unsubscribe@**logging.apache.org > For additional commands, e-mail: log4j-user-help@logging.**apache.org > > --=20 E-Mail: garydgregory@gmail.com | ggregory@apache.org Java Persistence with Hibernate, Second Edition JUnit in Action, Second Edition Spring Batch in Action Blog: http://garygregory.wordpress.com Home: http://garygregory.com/ Tweet! http://twitter.com/GaryGregory --001a1132f4d09a144f04e58dbe15--