log4j category/appender behaviour -

2005-01-11 Thread nick . minutello
I have been using log4j for some years now - and thought I knew everything there was to know... however I have just recently observed behaviour that suggests I understand bugger all. :-) (or there is a bug... which I doubt) If I have a debug logging event Logger log = Logger.getLogger("

Manifest.mf logging

2005-01-11 Thread Chapoor Chapoor
Hi! is there any way to log the manifest entries at startup using log4j ? E.g. MyAPP.ear - /meta-inf/manifest.mf - MyCode.jar <--- code here uses log4j to read the above app-manifest. Anyone done thie before? thanks. - To

Re: Manifest.mf logging

2005-01-11 Thread Ceki Gülcü
Can you ensure that log4j.jar gets loaded into memory before MyCode.jar starts using log4j? Have you considered placing log4j.jar outside MyAPP.ear in a ways such that it is visible to all class loaders? I hope this helps, At 01:03 PM 1/11/2005, Chapoor Chapoor wrote: Hi! is there any way to log

RE: log4j category/appender behaviour -

2005-01-11 Thread Alan Lewis
Is this because of the additivity properties? If you set additivity=false in the newly added appender, I think it will stop the symptoms you describe. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 11 January 2005 11:32 To: log4j-user@logging.apache.org Subjec

Re: Manifest.mf logging

2005-01-11 Thread Chapoor Chapoor
The log4j seems to work good. I use the logger in different classes in MyCode.jar but the only problem I face is when I try to log the ear_manifest stuff. I want to have my EAR file as portable as possible, that why log4j and mycode.jars are located in the same ear-bundle, and not using any absolu

Re: log4j category/appender behaviour -

2005-01-11 Thread Ceki Gülcü
Nick, Before answering your question, perhaps thinking about the following would help. How would you expect the following to behave? log4j.rootLogger=FATAL, CONSOLE log4j.logger.com.moo.boo=DEBUG At 12:32 PM 1/11/2005, [EMAIL PROTECTED] wrote: I have been using log4j for some years now - a

RE: log4j category/appender behaviour -

2005-01-11 Thread nick . minutello
>> Is this because of the additivity properties? Yes and no. I actually do want the logging event to cascade up the category tree, but I want it to obey the levels -Nick Extranet [EMAIL PROTECTED] - 11/01/2005 12:27 Please respond to log4j-user@logging.apache.org To:log4j-user

Re: log4j category/appender behaviour -

2005-01-11 Thread nick . minutello
>> How would you expect the following to behave? I didnt think that "log4j.logger.com.moo.boo=DEBUG" was even valid config... because it didnt specify an appender... -Nick Extranet [EMAIL PROTECTED] - 11/01/2005 13:37 Please respond to log4j-user@logging.apache.org To:log4j-user

Log4J date/time output problem

2005-01-11 Thread j d
Hello, I'm using Log4J 1.2.6 with the following configuration: AsyncAppender writing to RollingFileAppender which is using PatternLayout with conversion pattern "%p | %d{ISO8601} | %t | %x | %c | %m%n". My platform is JDK 1.4.2 on Linux redhat 9.0 . Lately, when I loaded my system to check perfo

Re: log4j category/appender behaviour -

2005-01-11 Thread Ceki Gülcü
At 03:05 PM 1/11/2005, [EMAIL PROTECTED] wrote: >> How would you expect the following to behave? I didnt think that "log4j.logger.com.moo.boo=DEBUG" was even valid config... because it didnt specify an appender... It is a valid configuration directive. However, my question still remains unanswere

Re: Log4J date/time output problem

2005-01-11 Thread Ceki Gülcü
Yoval, One possible explanation is the order in which AsyncAppender wakes up one of threads waiting to push events on AsyncAppender's buffer, when this buffer is full. http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#notify() public final void notify() Wakes up a single thread that is

Re: Log4J date/time output problem

2005-01-11 Thread j d
Hi Ceki, I'm attaching part form the log fileas you requested. Thanks for the brief response. Yuval --- Ceki Gülcü <[EMAIL PROTECTED]> wrote: > > Yoval, > > One possible explanation is the order in which > AsyncAppender wakes up > one of threads waiting to push events on > AsyncAppender's buff

Re: log4j category/appender behaviour -

2005-01-11 Thread DataCom - Diego
If this was not valid config we would not be able to perform the simplest (and most valuable!) action in a logging API like log4j: "activate debugging in a limited set of packages/classes". [EMAIL PROTECTED] wrote: How would you expect the following to behave? I didnt think that "log4j.logger.

Re: Log4J date/time output problem

2005-01-11 Thread Ceki Gülcü
At 04:31 PM 1/11/2005, you wrote: Hi Ceki, I'm attaching part form the log fileas you requested. The log4j-user list strips out attachments. Thanks for the brief response. Yuval -- Ceki Gülcü The complete log4j manual: http://www.qos.ch/log4j/

possible bug: 1.3 alpha3 mixes month with minute

2005-01-11 Thread Ricardo Trindade
Hi, I just noticed that one of the apps I upgraded to l4j 1.3 alpha 3 is mixing minutes and months in the log. I downgraded to alpha0 and it doesn't happend. I'm using mainly consoleappender and rollingfileappender. thanks Ricardo -

Re: log4j category/appender behaviour -

2005-01-11 Thread nick . minutello
>> If this was not valid config we would not be able to perform the >> simplest (and most valuable!) action in a logging API like log4j: >> "activate debugging in a limited set of packages/classes". Well, the way I have done this so far is: log4j.logger.com.moo.boo=DEBUG, CONSOLE ie. ", CO

clean log without restart

2005-01-11 Thread Chapoor Chapoor
Hi I create an application log file and start all logging but sometimes I wish to clean the logs. The problem is they are "locked" so... could some "clean" log files without restart the app server ? thanks - To unsubscribe, e-m

RE: clean log without restart

2005-01-11 Thread James Stauffer
Your best bet is using a time based or sized based rolling appender. James Stauffer -Original Message- From: Chapoor Chapoor [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 11, 2005 11:11 AM To: log4j-user@logging.apache.org Subject: clean log without restart Hi I create an applicat

I cannot get log4j to log to other than the tomcat console

2005-01-11 Thread Kevin Smolkowski
I don't get any errors on startup, but I cannot get log4j to send my log messages to a file. No matter what I put in the properties file they get loaded to the console. In my application. 1) I have an initialization servlet which loads the properties. public class Log4jInit extends HttpServl