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
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:
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
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?
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
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
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
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
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
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
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
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?
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
13 matches
Mail list logo