Re: Log4j2 with SL4J Adapter

2014-09-02 Thread Matt Sicker
If you prefer using GitHub, you can file a pull request instead of a patch file. I still want to test out the functionality, but it should work just fine. On 2 September 2014 09:29, Yogesh Rao wrote: > Hi, > > Just an update on this... i had little time last week to work on this > issue. I am l

Re: Log4j2 with SL4J Adapter

2014-09-02 Thread Yogesh Rao
Hi, Just an update on this... i had little time last week to work on this issue. I am looking into this now and checking if a sandbox can be created for execution of the test cases using class loaders. Thank you! Regards, -Yogesh On Mon, Aug 25, 2014 at 10:48 AM, Yogesh Rao wrote: > Sure Rem

Re: Log4j2 with SL4J Adapter

2014-08-24 Thread Yogesh Rao
Sure Remko! Will try for it. Thank you! Regards, -Yogesh On Monday, August 25, 2014, Remko Popma wrote: > Great, thank you! I'll have limited PC access the next ten days or so. > If you want to take a stab at providing a patch that includes both a JUnit > test and a fix, go for it! > > > On Su

Re: Log4j2 with SL4J Adapter

2014-08-24 Thread Remko Popma
Great, thank you! I'll have limited PC access the next ten days or so. If you want to take a stab at providing a patch that includes both a JUnit test and a fix, go for it! On Sun, Aug 24, 2014 at 11:31 PM, Yogesh Rao wrote: > Defect logged under LOG4J2-796 > > Regards, > -Yogesh > > > On Sun,

Re: Log4j2 with SL4J Adapter

2014-08-24 Thread Yogesh Rao
Defect logged under LOG4J2-796 Regards, -Yogesh On Sun, Aug 24, 2014 at 2:41 PM, Remko Popma wrote: > Yogesh, > > Thanks! Both would be really helpful! > > Remko > > Sent from my iPhone > > > On 2014/08/24, at 9:09, Yogesh Rao wrote: > > > > Thanks Remko! > > > > would you like me to create a

Re: Log4j2 with SL4J Adapter

2014-08-24 Thread Remko Popma
Yogesh, Thanks! Both would be really helpful! Remko Sent from my iPhone > On 2014/08/24, at 9:09, Yogesh Rao wrote: > > Thanks Remko! > > would you like me to create a JIRA ticket for the same ? I could also try > giving a shot at creating that unit test case for you.. > > Regards, > -Yoges

Re: Log4j2 with SL4J Adapter

2014-08-24 Thread Yogesh Rao
Thanks Remko! would you like me to create a JIRA ticket for the same ? I could also try giving a shot at creating that unit test case for you.. Regards, -Yogesh On Sun, Aug 24, 2014 at 12:35 PM, Remko Popma wrote: > This looks like a bug. The output is the FQCN (fully qualified name of the >

Re: Log4j2 with SL4J Adapter

2014-08-24 Thread Remko Popma
This looks like a bug. The output is the FQCN (fully qualified name of the logger). This is probably introduced by the changes made for LOG4J2-555. Our unit tests are not picking this up because they use the ch.qos.logback.classic.Logger, which is a LocationAwareLogger and follows a different code

Re: Log4j2 with SL4J Adapter

2014-08-23 Thread Yogesh Rao
Hi Ralph, The issue for me is log4j2 to slf4j adaptor doesnt seem to be working. I added the log4j configuration only when the logger wasnt working hence i mentioned in brackets that i wasnt sure if its needed or not.. So since you mentioned that things should be working without the configuration

Re: Log4j2 with SL4J Adapter

2014-08-23 Thread Ralph Goers
I am really not clear on what the issue is. It seems you have things configured so that you can write to the Log4j 2 API but actually use SLF4J for logging. There is nothing wrong with that but if you are routing to SLF4J and using SLF4J Simple Logger then the Log4j 2 configuration won’t even b

Re: Log4j2 with SL4J Adapter

2014-08-23 Thread Yogesh Rao
Hello, Can anyone please let me know if my way of using log4j is wrong or is it an issue with the log4j to slf4j binding. Regards, -Yogesh On Saturday, August 23, 2014, Yogesh Rao wrote: > Thanks matt! > > First is what i am attempting to check.. Here instead of logback i have > used slf4j-sim

Re: Log4j2 with SL4J Adapter

2014-08-22 Thread Yogesh Rao
Thanks matt! First is what i am attempting to check.. Here instead of logback i have used slf4j-simple. Based on this is there any issue with my implementation? Regards, -Yogesh On Friday, August 22, 2014, Matt Sicker wrote: > Using log4j-to-slf4j is for when you want to use log4j-api but wit

Re: Log4j2 with SL4J Adapter

2014-08-22 Thread Matt Sicker
Using log4j-to-slf4j is for when you want to use log4j-api but with an slf4j implementation (like logback). log4j-slf4j-impl would allow you to use slf4j-api and have that log to log4j-core. On 22 August 2014 08:27, Yogesh Rao wrote: > Hi, > > I am trying out the API side of log4j2 with the SLF

Log4j2 with SL4J Adapter

2014-08-22 Thread Yogesh Rao
Hi, I am trying out the API side of log4j2 with the SLF4J adaptor. With the sample code written i couldn't see the logging being done properly. Perhaps i am doing something wrong here. Firstly versions of the software are :- 1. JDK 1.8.x 2. Log4j2 (2.0.1) 3. SLF4J 1.7.7 4. SLF4J's Simple Logger