Re: [survey] What version of Java do you use?

2014-09-08 Thread Yogesh Rao
Hello, Not that I have started suggesting Log4j2 to our client projects, However conducted experiments using JDK 1.6 / JDK 1.7 We used Log4j1 prior till JDK 5 Regards, -Yogesh On Mon, Sep 8, 2014 at 7:25 PM, Gary Gregory garydgreg...@gmail.com wrote: I'm all Java 7 with some 8 experiments.

Re: org.apache.loggin.log4j.core.pattern.DatePatternConverter blocking

2014-09-03 Thread Yogesh Rao
How abt providing the date formatter as part of log4j itself ( on the lines of FastDateFormatter from commons-lang) ? Regards, -Yogesh On Thursday, September 4, 2014, Matt Sicker boa...@gmail.com wrote: Is it not possible to just use ThreadLocal? Is that not safe enough or does it waste too

Log4j2's SimpleLogger Implementation Issue for var args method's

2014-09-02 Thread Yogesh Rao
Hi, There seems to be an issue with SimpleLogger implementation provided by log4j2. The issue seems to be in the new improved API supporting placeholders and var args when called with an Object Array of size 0. for e.g logger.error(Hello World {} in {} , new Object[0]); A statement above

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 yog...@gmail.com

Re: Log4j2's SimpleLogger Implementation Issue for var args method's

2014-09-02 Thread Yogesh Rao
a patch it would be most helpful to do so against the Git master branch. In any case, please create JIRA issue. Thank you, Gary On Tue, Sep 2, 2014 at 10:24 AM, Yogesh Rao yog...@gmail.com wrote: Hi, There seems to be an issue with SimpleLogger implementation provided by log4j2

Re: Log4j2's SimpleLogger Implementation Issue for var args method's

2014-09-02 Thread Yogesh Rao
-Create Patch... dialog. Depending on your Eclipse set up you might have to install EGit to get git support in Eclipse. Gary On Tue, Sep 2, 2014 at 10:53 AM, Yogesh Rao yog...@gmail.com wrote: Hi Gary, I haven't worked on Git as yet, I think i will provide a diff of the files

Re: Log4j2's SimpleLogger Implementation Issue for var args method's

2014-09-02 Thread Yogesh Rao
” for the placeholders, but just throwing a different exception probably isn’t worth the trouble. Ralph On Sep 2, 2014, at 7:24 AM, Yogesh Rao yog...@gmail.com wrote: Hi, There seems to be an issue with SimpleLogger implementation provided by log4j2. The issue seems to be in the new improved

Re: Log4j2 with SL4J Adapter

2014-08-24 Thread Yogesh Rao
to make a failing unit test first and I haven't had time to figure out how to do that yet. On Sun, Aug 24, 2014 at 12:00 PM, Yogesh Rao yog...@gmail.com wrote: Hi Ralph, The issue for me is log4j2 to slf4j adaptor doesnt seem to be working. I added the log4j configuration only when

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 remko.po...@gmail.com wrote: Yogesh, Thanks! Both would be really helpful! Remko Sent from my iPhone On 2014/08/24, at 9:09, Yogesh Rao yog...@gmail.com wrote: Thanks Remko! would you

Re: Log4j2 with SL4J Adapter

2014-08-24 Thread Yogesh Rao
for it! On Sun, Aug 24, 2014 at 11:31 PM, Yogesh Rao yog...@gmail.com javascript:; wrote: Defect logged under LOG4J2-796 Regards, -Yogesh On Sun, Aug 24, 2014 at 2:41 PM, Remko Popma remko.po...@gmail.com javascript:; wrote: Yogesh, Thanks! Both would be really

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 yog...@gmail.com wrote: Thanks matt! First is what i am attempting to check.. Here instead of logback i have

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

Re: Log4j2 with SL4J Adapter

2014-08-22 Thread Yogesh Rao
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 yog...@gmail.com javascript:; wrote: Hi, I am trying out the API side of log4j2 with the SLF4J adaptor

RE: JDBCAppender problem

2010-09-05 Thread Yogesh Rao
Hi Aleksandar, Had a quick look at the config and everything else, they do seem fine... Can you do the following and get back ? 1. Connect to DB and try manually inserting a record using the username and id specified? 2. i see the table name as logs can you try changing this to LOGS.. some

RE: Using MDC on an application server with thread pools

2009-12-04 Thread Yogesh Rao
Hi, Servers never guarantees that thread allocated to a request from client would be given the same thread on subsequent requests from the client. Hence its advisable to clear out the mdc info before the request ends(preferable)or in case you wouldn't like to clean up then make sure you

RE: JMSAppender for Log4j with Qpid

2009-08-29 Thread Yogesh Rao
Can anyone help me out on this ? or atleast some pointers would be useful Thank you! From: Yogesh Rao Sent: Friday, August 28, 2009 11:09 AM To: 'log4j-user@logging.apache.org' Subject: JMSAppender for Log4j with Qpid Hi, I am trying to use

JMSAppender for Log4j with Qpid

2009-08-27 Thread Yogesh Rao
Hi, I am trying to use the JMSAppender provided by log4j with QPID and it seems that a timeout occurs when connecting to the broker. The method used is publish / subscribe. Following is the log4j xml defined :- log4j:configuration xmlns:log4j=http://jakarta.apache.org/log4j/; appender

JMSAppender for Log4j with Qpid

2009-08-26 Thread Yogesh Rao
Hi, I am try to use the JMSAppender provided by log4j with QPID and it seems that a timeout occurs when connecting to the broker. The method used is publish / subscribe. Following is the log4j xml defined :- log4j:configuration xmlns:log4j=http://jakarta.apache.org/log4j/; appender