how to force buffer flush?

2004-08-16 Thread ramin_rad
I apologize if this has been asked before. I couldn't find it in FAQ. I was wondering if there is a way to configure log4j so it doesn't buffer STDOUT, so error and info messages all come out in the order they are produced. Thanks, -ramin

RE: Is there a "MQAppender"...

2004-08-16 Thread Tom . Goetze
You might find this article of interest, if you want to write your own... Develop an Asynchronous Logging Framework using log4j with JMS and WebSphere MQ http://www-106.ibm.com/developerworks/websphere/library/techarticles/0207_barcia/barcia.html -- Tom Goetze Thomas, Thanks for the sugges

RE: Is there a "MQAppender"...

2004-08-16 Thread McCarty, Brian
Thomas, Thanks for the suggestions. I am worried that extending JMSAppender is not going to work because the physical messages would need to be in an MQ format, not a JMS format. The messages headers will be different even if the payloads are agnostic. But since I know you can go from a JMS mess

RE: Is there a "MQAppender"...

2004-08-16 Thread Shapira, Yoav
Hi, The other post had a couple of good ideas. The probability of us including a provider-specific appender implementation is in the log4j core is slim. In add-on/contrib modules, the probability is higher, but you'd have to write it, submit it to us (with the appropriate copyright transfer), and

RE: Flushing the log to file?

2004-08-16 Thread Sandeep Murthy (Altrantec)
Hi, If I were to set log4j.appender.MyAppender.immediateFlush = FALSE, whats the size of the log messages buffered before it is outputted to the file ?? Can I set it ? I understand that few messages may get lost, but I feel this would prevent heavy disk activity as David pointed out. Any sugge

sending emails from log4j????

2004-08-16 Thread sandeep manhas
Does any one have an idea how i can set authentication for my smtp server to send mails.Iam attempting to send emails for every error generated in the JBOSS and hence have set the respective log4j.xml entry as under.

Re: Flushing the log to file?

2004-08-16 Thread Martin Olsson
Afaik no. I use a standard log4j setup which logs to file and console and I do not use any flushing. Maybe you could try it in a simple context like a "hello world" program. regards, Martin Olsson Schuhmacher, Bret wrote: Is Log4J buffered? I have the following statements: myLog.fatal("a fatal