logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Gregory <garydgreg...@gmail.com>
Subject Re: Using the SLF4J Bridge
Date Tue, 03 Sep 2013 20:19:56 GMT
The tests works for me:

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.apache.syncope.core.connid.PasswordGeneratorTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 15.865 sec
- in org.apache.syncope.core.connid.PasswordGeneratorTest
Running org.apache.syncope.core.init.ConnectorManagerTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.613 sec -
in org.apache.syncope.core.init.ConnectorManagerTest
Running org.apache.syncope.core.notification.NotificationTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 19.977 sec
- in org.apache.syncope.core.notification.NotificationTest
Running org.apache.syncope.core.persistence.dao.AttrTest
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.12 sec -
in org.apache.syncope.core.persistence.dao.AttrTest
Running org.apache.syncope.core.persistence.dao.AttributableSearchTest
Tests run: 16, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.357 sec
- in org.apache.syncope.core.persistence.dao.AttributableSearchTest
Running org.apache.syncope.core.persistence.dao.ConnInstanceTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.498 sec -
in org.apache.syncope.core.persistence.dao.ConnInstanceTest
Running org.apache.syncope.core.persistence.dao.DerAttrTest
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.258 sec -
in org.apache.syncope.core.persistence.dao.DerAttrTest
Running org.apache.syncope.core.persistence.dao.DerSchemaTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.056 sec -
in org.apache.syncope.core.persistence.dao.DerSchemaTest
Running org.apache.syncope.core.persistence.dao.EntitlementTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.077 sec -
in org.apache.syncope.core.persistence.dao.EntitlementTest
Running org.apache.syncope.core.persistence.dao.MembershipTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.087 sec -
in org.apache.syncope.core.persistence.dao.MembershipTest
Running org.apache.syncope.core.persistence.dao.NotificationTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.075 sec -
in org.apache.syncope.core.persistence.dao.NotificationTest
Running org.apache.syncope.core.persistence.dao.PolicyTest
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.091 sec -
in org.apache.syncope.core.persistence.dao.PolicyTest
Running org.apache.syncope.core.persistence.dao.ReportTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.087 sec -
in org.apache.syncope.core.persistence.dao.ReportTest
Running org.apache.syncope.core.persistence.dao.ResourceTest
Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.258 sec
- in org.apache.syncope.core.persistence.dao.ResourceTest
Running org.apache.syncope.core.persistence.dao.RoleTest
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.33 sec -
in org.apache.syncope.core.persistence.dao.RoleTest
Running org.apache.syncope.core.persistence.dao.SchemaTest
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.182 sec -
in org.apache.syncope.core.persistence.dao.SchemaTest
Running org.apache.syncope.core.persistence.dao.TaskExecTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.066 sec -
in org.apache.syncope.core.persistence.dao.TaskExecTest
Running org.apache.syncope.core.persistence.dao.TaskTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.119 sec -
in org.apache.syncope.core.persistence.dao.TaskTest
Running org.apache.syncope.core.persistence.dao.UserTest
Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.3 sec -
in org.apache.syncope.core.persistence.dao.UserTest
Running org.apache.syncope.core.persistence.dao.VirAttrTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec -
in org.apache.syncope.core.persistence.dao.VirAttrTest
Running org.apache.syncope.core.persistence.dao.VirSchemaTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec -
in org.apache.syncope.core.persistence.dao.VirSchemaTest
Running org.apache.syncope.core.persistence.relationships.AttrTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec -
in org.apache.syncope.core.persistence.relationships.AttrTest
Running
org.apache.syncope.core.persistence.relationships.AttributableSearchTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in
org.apache.syncope.core.persistence.relationships.AttributableSearchTest
Running org.apache.syncope.core.persistence.relationships.ConnInstanceTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec -
in org.apache.syncope.core.persistence.relationships.ConnInstanceTest
Running org.apache.syncope.core.persistence.relationships.DerSchemaTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec -
in org.apache.syncope.core.persistence.relationships.DerSchemaTest
Running org.apache.syncope.core.persistence.relationships.MembershipTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec -
in org.apache.syncope.core.persistence.relationships.MembershipTest
Running org.apache.syncope.core.persistence.relationships.ReportTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec -
in org.apache.syncope.core.persistence.relationships.ReportTest
Running org.apache.syncope.core.persistence.relationships.ResourceTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec -
in org.apache.syncope.core.persistence.relationships.ResourceTest
Running org.apache.syncope.core.persistence.relationships.RoleTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec -
in org.apache.syncope.core.persistence.relationships.RoleTest
Running org.apache.syncope.core.persistence.relationships.SchemaTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec -
in org.apache.syncope.core.persistence.relationships.SchemaTest
Running org.apache.syncope.core.persistence.relationships.TaskTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec -
in org.apache.syncope.core.persistence.relationships.TaskTest
Running org.apache.syncope.core.persistence.relationships.UserTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in
org.apache.syncope.core.persistence.relationships.UserTest
Running org.apache.syncope.core.policy.AccountPolicyEnforcerTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec -
in org.apache.syncope.core.policy.AccountPolicyEnforcerTest
Running org.apache.syncope.core.rest.data.ResourceDataBinderTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec -
in org.apache.syncope.core.rest.data.ResourceDataBinderTest
Running org.apache.syncope.core.security.PasswordEncoderTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.176 sec -
in org.apache.syncope.core.security.PasswordEncoderTest
Running org.apache.syncope.core.sync.SyncTaskTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.038 sec -
in org.apache.syncope.core.sync.SyncTaskTest

Results :

Tests run: 176, Failures: 0, Errors: 0, Skipped: 0

[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1:16.443s
[INFO] Finished at: Tue Sep 03 16:18:51 EDT 2013
[INFO] Final Memory: 56M/608M
[INFO]
------------------------------------------------------------------------

My set up:

Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 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"

Gary




On Mon, Sep 2, 2013 at 6:47 AM, Francesco Chicchiriccò
<ilgrosso@apache.org>wrote:

> On 02/09/2013 10:39, Francesco Chicchiriccň wrote:
>
>> Hi all,
>> at Syncope we are currently migrating from Logback to Log4j 2.0, as per
>> 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 repository 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 the
> 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<https://issues.apache.org/jira/browse/SYNCOPE-405>
>> [2] http://logging.apache.org/**log4j/2.x/log4j-slf4j-impl/**index.html<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<https://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<https://github.com/ilgrosso/syncope/tree/LOG4J2>
>
> --
> Francesco Chicchiriccň
>
>
> ASF Member, Apache Syncope PMC chair, Apache Cocoon PMC Member
> http://people.apache.org/~**ilgrosso/<http://people.apache.org/~ilgrosso/>
>
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: log4j-user-unsubscribe@**logging.apache.org<log4j-user-unsubscribe@logging.apache.org>
> For additional commands, e-mail: log4j-user-help@logging.**apache.org<log4j-user-help@logging.apache.org>
>
>


-- 
E-Mail: garydgregory@gmail.com | ggregory@apache.org
Java Persistence with Hibernate, Second Edition<http://www.manning.com/bauer3/>
JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
Spring Batch in Action <http://www.manning.com/templier/>
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message