Re: Listening for events

2004-01-27 Thread Paul Smith
On Wed, 2004-01-28 at 05:19, Sloan Seaman wrote: > I have an object A, that uses log4j for various logging. > > I have another object B, that I want to listen for any logging events within > A that are warning, errors, or fatals. > > How do I registers B so that it will be informed when A does a

Listening for events

2004-01-27 Thread Sloan Seaman
I have an object A, that uses log4j for various logging. I have another object B, that I want to listen for any logging events within A that are warning, errors, or fatals. How do I registers B so that it will be informed when A does a log message? Thanks! -- Sloan ___

RE: log4j.properties not read

2004-01-27 Thread Christian Hufgard
> Or you could just add -Dlog4j.debug=true to your java runtime command. > Much simpler ;) Pah. My version is much nicer. And it works without having read any documentation about fuzzy parameters ;) > > Howdy, > Or you could just add -Dlog4j.debug=true to your java runtime comman > d. Much s

Re: ASYNC + SMTP appender with JBoss configuration

2004-01-27 Thread Vladyslav Kosulin
Thanks. Unfortunately, it does not fix the problem, I already have it enabled: jdbc/SybaseDS ... com.sybase.jdbc2.jdbc.SybDataSource ... ... 2 20 15 org.jboss.resource.adapter.jdbc.vendor.SybaseExceptionSorter Any other ideas? Robert Augustyn wrote: How

RE: log4j.properties not read

2004-01-27 Thread Joe Collins
I have had some issues with log4j using weblogic 8.1. My file log4j.xml would not get picked up. I found that by putting log4j.xml and log4j.dtd in the directory bea\weblogic81\server\bin of my server, that the log4j.xml file got picked up and logs created. This does seem rather crude but did ge

RE: ASYNC + SMTP appender with JBoss configuration

2004-01-27 Thread Robert Augustyn
How I am not sure :) but that what worked for me. org.jboss.resource.adapter.jdbc.vendor.Syba seExceptionSorter I believe is correct sorter for Sybase. I had the same problem with oracle and when I added sorter and it took care of the problem. My appender looks the same as yours. -Or

Re: ASYNC + SMTP appender with JBoss configuration

2004-01-27 Thread Vladyslav Kosulin
Robert Augustyn wrote: I am not quite sure how you get anything by setting smtp host value/to/from to "..." ? I replaced the real values for security purposes ;-) You may want to look into using exception sorter in the definition of your jdbc pool. JDBC pool? How does it affect SMTP? Vlad -

Re: ASYNC + SMTP appender with JBoss configuration

2004-01-27 Thread Vladyslav Kosulin
Ionel GARDAIS wrote: Hi Vladyslav, The line declares a buffer of 100 events to send with the message each time an error occurs. To reduce the amount of message received in the body of your mail, just decrease the buffersize value. According to JavaDoc, BufferSize does not intersect with a messag

RE: log4j.properties not read

2004-01-27 Thread Ionel GARDAIS
Hi there, As I told, that what i've done. And I saw that the log4j.properties file used was not mine. Even by adding my file at the beginning of the classpath, it does not use it. I tried to add -Dlog4j.properties and -Dlog4j.properties.file but none worked. Is there a way to force the use of a

Understanding MDC

2004-01-27 Thread jay andrews
Hello, I am just beginning to use log4j and I am trying to get my head around using the MDC class. From reading through the archives it appears that I need to use this class for my logging within my servlet. That being said, I'm having a little understanding exactly how its used. Is it as sim

Delivery failed.

2004-01-27 Thread Tom Drynda
We were unable to deliver your message. Either the recipient does not exist, or your email was sent from a proscribed host. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: ASYNC + SMTP appender with JBoss configuration

2004-01-27 Thread Robert Augustyn
I am not quite sure how you get anything by setting smtp host value/to/from to "..." ? You may want to look into using exception sorter in the definition of your jdbc pool. robert -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Vladyslav Kosulin Sent: Tuesday, January

Re: ASYNC + SMTP appender with JBoss configuration

2004-01-27 Thread Ionel GARDAIS
Hi Vladyslav, The line declares a buffer of 100 events to send with the message each time an error occurs. To reduce the amount of message received in the body of your mail, just decrease the buffersize value. hope this could help, ionel

ASYNC + SMTP appender with JBoss configuration

2004-01-27 Thread Vladyslav Kosulin
Hi all, I use JBoss 3.2.3 with log4j I activated SMTP appender to send errors by e-mail, but can't properly configure it. Every time an Exception happens, I receive a lot of e-mails with every e-mail body containing only 1 line of the Exception trace log, like: [16:49:04,315,STDERR] at com.

Re: log4j.properties not read

2004-01-27 Thread Ionel GARDAIS
Christian, I used -dlog4j.debug=true in my command line and I saw that log4j is using another log4j.properties file (from a third-party jar file) Again, the first entry in my classpath is my own log4j.porperties file. Also I still have the -Dlog4j.properties= in the command line. Why don't it g

RE: Understanding MDC

2004-01-27 Thread Shapira, Yoav
Howdy, >im just getting started with using log4j and I am trying to use it within >my >servlet. From reading the archives it appears i need to be using the MDC >class, but i am a little confused as to how it works and how it is used in First of all, the MDC is entirely optional. Many people ne

Understanding MDC

2004-01-27 Thread jay andrews
hello, im just getting started with using log4j and I am trying to use it within my servlet. From reading the archives it appears i need to be using the MDC class, but i am a little confused as to how it works and how it is used in code. is it as easy to implement like in the following psuedo

RE: log4j.properties not read

2004-01-27 Thread Shapira, Yoav
Howdy, Or you could just add -Dlog4j.debug=true to your java runtime command. Much simpler ;) Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Christian Hufgard [mailto:[EMAIL PROTECTED] >Sent: Tuesday, January 27, 2004 5:57 AM >To: Log4J Users List >Subject: Re: log4

Re: log4j.properties not read

2004-01-27 Thread Christian Hufgard
Hi Ionel, you could use the following work-around to determine, what your log4j is doing - it did help me too :) public void initializeLog4j(String propertyfileName) { System.out.println("looking for property file with name "+ propertyfileName); url = this.getClass().getClassLoader().

log4j.properties not read

2004-01-27 Thread Ionel GARDAIS
Hi, I am running an application that uses log4j. I add the nedded log4j jars and the log4j.properties file on its classpath. Unfortunatly, I see none of the declared log files on my folders. I tries to add a -Dlog4j.properties= but it does not help : i am still missing the log files. How to for