Log Debug and Info in 2 different files

2009-02-12 Thread Mohit Anchlia
I am trying to log DEBUG and up in one log file and INFO and up in other log file. But it doesn't seem to be working. I have tried various things like Level, Threshold, additivity, Priority etc. Nothing seems to be working. Nothing is being written to sw.log. Only INFO and up is being written to

timestamp in rolled over files

2009-03-03 Thread Mohit Anchlia
Is there a way to get the timestamp instead of .1 .2 etc. when a log file is rolled over by log4j? - To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org For additional commands, e-mail:

Re: timestamp in rolled over files

2009-03-03 Thread Mohit Anchlia
the appender's DatePattern property with the period you want files to roll, e.g. by any one of minute, hour, half-day, day, week, etc. From: Mohit Anchlia mohitanch...@gmail.com To: log4j-user@logging.apache.org Sent: Tuesday, 3 March, 2009 20:19:10

Unit testing log4j JMS Appender

2014-04-01 Thread Mohit Anchlia
I am trying to unit test log4j with jms appender, however even before I bring up the jms embedded broker service log4j.properties get loaded and it fails to connect to the broker. Is there a way to reload log4j after the broker is up?

Re: Unit testing log4j JMS Appender

2014-04-01 Thread Mohit Anchlia
From: Mohit Anchlia mohitanch...@gmail.com Date:04/01/2014 15:01 (GMT-05:00) To: Log4J Users List log4j-user@logging.apache.org Subject: Unit testing log4j JMS Appender I am trying to unit test log4j with jms appender, however even before I bring up the jms embedded broker service

Non blocking JMS appender

2014-04-02 Thread Mohit Anchlia
I am trying to configure log4j such that the jms appender is non blocking. Does this configuration make it non blocking? appender name=async class=org.apache.log4j.AsyncAppender param name=BufferSize value=4096 / param name=blocking value=false/ /appender appender

Re: Unit testing log4j JMS Appender

2014-04-02 Thread Mohit Anchlia
Method) On Tue, Apr 1, 2014 at 12:41 PM, Gary Gregory garydgreg...@gmail.comwrote: On Tue, Apr 1, 2014 at 3:13 PM, Mohit Anchlia mohitanch...@gmail.com wrote: Is there a stable version available? Yes: https://logging.apache.org/log4j/2.x/ How do I reload configuration? Please see

Re: Unit testing log4j JMS Appender

2014-04-02 Thread Mohit Anchlia
configuration with Log4j 1. You cannot have log4j version 1 on the classpath if you want to use version 2. The XML format between version 1 and 2 is different. Log4j 2 has a version 1 compatibility module you can use. Gary On Wed, Apr 2, 2014 at 1:07 PM, Mohit Anchlia mohitanch...@gmail.com

Re: Unit testing log4j JMS Appender

2014-04-02 Thread Mohit Anchlia
I don't think there is any problem with that jar, the issue is that I am trying to use log4j 2 but the dependency jar that I am using is using log4j 1. When I switch back to log4j 1 everything works fine. Is there a way to avoid this compatibility issue? Not sure how others that have similar issue

Logging using log4j.xml 2

2014-08-07 Thread Mohit Anchlia
I have below xml but my application is not printing the logs to console. I am running through eclipse and this file is in main/resources. ?xml version=*1.0* encoding=*UTF-8*? Configuration status=*INFO* monitorInterval=*30* Appenders Console name=*Console* target=*SYSTEM_OUT* PatternLayout

Re: Logging using log4j.xml 2

2014-08-07 Thread Mohit Anchlia
I realized it later and changed it to log4j2.xml and now it works On Thu, Aug 7, 2014 at 3:35 PM, Remko Popma remko.po...@gmail.com wrote: The config file should be named log4j2.xml, not log4j.xml. Did you try that? Remko Sent from my iPhone On 2014/08/08, at 7:16, Mohit Anchlia

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

2014-09-03 Thread Mohit Anchlia
I am using log4j2 and I am seeing almost all the threads momentarily getting blocked on org.apache.loggin.log4j.core.pattern.DatePatternConverter class. Is this expected?

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

2014-09-03 Thread Mohit Anchlia
On Sep 3, 2014, at 3:00 PM, Mohit Anchlia mohitanch...@gmail.com wrote: I am using log4j2 and I am seeing almost all the threads momentarily getting blocked on org.apache.loggin.log4j.core.pattern.DatePatternConverter class. Is this expected