RE: SMTPAppender not sending emails

2003-12-04 Thread Raziel Steinmetz
Sent: Thursday, December 04, 2003 6:12 PM To: 'Log4J Users List' Subject: RE: SMTPAppender not sending emails Sean, That would be my last resort, right now I'm just using the log4j.jar file without the source code files. BTW - I did noticed that if I set a wrong SMTPHost then I ge

RE: SMTPAppender not sending emails

2003-12-04 Thread Raziel Steinmetz
From: Sullivan, Sean C - MWT [mailto:[EMAIL PROTECTED] Sent: Thursday, December 04, 2003 6:06 PM To: 'Log4J Users List' Subject: RE: SMTPAppender not sending emails I recommend that you set a breakpoint in the SMTPAppender class and step through the code. -Sean > -Original M

RE: SMTPAppender not sending emails

2003-12-04 Thread Sullivan, Sean C - MWT
I recommend that you set a breakpoint in the SMTPAppender class and step through the code. -Sean > -Original Message- > From: Raziel Steinmetz [mailto:[EMAIL PROTECTED] > Sent: Thursday, December 04, 2003 3:02 PM > To: 'Log4J Users List' > Subject: RE: SMTPAp

RE: SMTPAppender not sending emails

2003-12-04 Thread Raziel Steinmetz
MAIL PROTECTED] Sent: Thursday, December 04, 2003 5:57 PM To: 'Log4J Users List' Subject: RE: SMTPAppender not sending emails By default, the SMTPAppender buffers all LogEvent's in a cyclic buffer. It will send email messages when: 1) an ERROR LogEvent occurs 2) a FATAL LogEvent occur

RE: SMTPAppender not sending emails

2003-12-04 Thread Sullivan, Sean C - MWT
By default, the SMTPAppender buffers all LogEvent's in a cyclic buffer. It will send email messages when: 1) an ERROR LogEvent occurs 2) a FATAL LogEvent occurs DEBUG messages will NOT cause an email message. If you want different behavior, you will need to provide a custom TriggeringEventEv

Re: SMTPAppender and BufferSize.

2003-09-28 Thread Paul Smith
On Sun, 2003-09-28 at 04:03, [EMAIL PROTECTED] wrote: > Greetings: > I have what I hope to be a simple question. > > We are using the log4j implementation in JBoss 3.0.4. > > When I activate the SMTP Appender for ERROR level to send me an email > for any exceptions and stack tra

RE: SMTPAppender with a time limit?

2003-08-15 Thread Mark Womack
You could subclass SMTPAppender and have it set up a TimerTask object that will wake up every N minutes and send the current buffer of events if an email has not been sent within some threshold. You will need to have at least JDK 1.3 to use TimerTask. -Mark > -Original Message- > From: C

RE: SMTPAppender security flaw?

2003-06-13 Thread Scott Heaberlin
This might be a question better suited for the log4j-dev list than the log4j users list. [EMAIL PROTECTED] As a suggestion, you could submit a bug report requesting the SMTP appender (and perhaps the rest of log4j - it is up to you) only retrieve the exact properties they need, for security manag

RE: SMTPAppender usage

2003-05-29 Thread Shapira, Yoav
Howdy, Do you have the JavaMail API (mail.jar) and Java Activation Framework (activation.jar) on your classpath? If not, download them from java.sun.com and add them. Yoav Shapira Millennium ChemInformatics >-Original Message- >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >Sent: W

Re: SMTPAppender for prim. and sec. Mail-Servers

2002-11-11 Thread Ricardo Moral
No... There is no way you can check if there was an error during the delivery of the mail. One way could be to set a Error Handler to the appender to receive a notification of the error, but if there is an error during the mail delivery the code that handles the error in the SMTP Appender class doe

RE: SMTPAppender only sends mail for error or above

2002-10-08 Thread Riho Bunder
in version 1.2.5 (and before ) you must implement own TriggeringEventEvaluator to send any level messages from SMTPAppender source : /** The default constructor will instantiate the appender with a {@link TriggeringEventEvaluator} that will trigger on events with level ERROR or

RE: SMTPAppender with VisualAge for Java

2002-09-10 Thread RUTHERFURD, Michael
11 September 2002 1:15 > To: Log4J Users List > Subject: RE: SMTPAppender with VisualAge for Java > > > > Michael, > > Thanks for your help. I went ahead and tried the PropertyConfigurator > instead of the DOMConfigurator. We will use the > DOMConfigurato

RE: SMTPAppender with VisualAge for Java

2002-09-10 Thread Matthew_Bennett/MO/americancentury
"RUTHERFURD, Michael" To: Log4J Users List <[EMAIL PROTECTED]>

RE: SMTPAppender with VisualAge for Java

2002-09-09 Thread RUTHERFURD, Michael
I've used the SMTPApender in VAJ with no problems but I used a property file rather than xml. Looking at your error report are you sure that your problem isn't just that the XML parser can't find the log4j.dtd? Perhaps you need to adjust the DOCTYPE to be able to find it... Michael Rutherfurd >

Re: SMTPAppender Threshold Bug

2002-01-17 Thread Lyndsey . J . Hairsine
Hi The default constructor for SMTPAppender will instantiate the appender with a TriggeringEventEvaluator that will trigger an email to be sent on events with priority ERROR or higher. I believe that if an event has a priority lower than ERROR, that event will be buffered and not sent until an ev

RE: SMTPAppender

2002-01-11 Thread james . snyder
cc: Subject: RE: SMTPAppender 01/11/2002 04:09

Re: SMTPAppender

2002-01-11 Thread james . snyder
Hi Mike, I'm using the SMTPAppender in 1.1.3 Here is my .lcf file. I also use the DailyRollingFileAppender log4j.rootCategory=info, A1, SMTPTest # A1 writes to the file "ldh". log4j.appender.A1=org.apache.log4j.DailyRollingFileAppender # default rollover is daily and midnight log4j.appender.

RE: SMTPAppender

2002-01-11 Thread Boudreau, Mike
I was able to get the SMTPAppender to work, but I would still like to know where I could find more robust documentation. Also, how do I send warnings and above to my FileAppender and errors and above to my SMTPAppender? Thanks, Mike log4j.rootCategory=WARN,FILE,SMTP -Original Message-

RE: SMTPAppender again

2001-12-15 Thread Ceki Gulcu
Calling cat.isDebugEnabled() should not take that much time, unless you are calling it all the time (billions of times), say in every method (however small) or in tight loops. This is from the manual: Certain users resort to preprocessing or compile-time techniques to compile out all log state

RE: SMTPAppender again

2001-12-14 Thread Ceki Gulcu
rarchy.disableDebug(). > This should disable all the > DEBUG stmts and the cat.isDebugEnabled does just one > numeric comparision. > > HTH, > --Venkat. > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]] > Sent: Friday, December

RE: SMTPAppender again

2001-12-14 Thread Sonnathi, Venkat Ramana
Users List Subject: RE: SMTPAppender again Hi all: We us log4j for debugging and now the speed of the execution become big problem. We found cat.isDebugEnabled()really uses more then half of execution time in our project. I was wondering if there is any easy way to turn log4J off or make the

RE: SMTPAppender again

2001-12-14 Thread jiaoxg
Hi all: We us log4j for debugging and now the speed of the execution become big problem. We found cat.isDebugEnabled()really uses more then half of execution time in our project. I was wondering if there is any easy way to turn log4J off or make the compiler treat this method call as comments.

RE: SMTPAppender again

2001-12-14 Thread Mathew, Bindhu
Hi ray, Still I am getting the same error. Attached is my SendMail class and jsp file. If you get a chance could you please check them? Thanks in advance SendMail.java Description: Binary data Test1.jsp Description: Binary data -- To unsubscribe, e-mail: For

RE: SMTPAppender again

2001-12-14 Thread Millard, Ray
Make sure that both the mail.jar file and log4j.jar file are loaded by the same class loader. Put the log4j.jar file in the same directory as the mail.jar file. > -Original Message- > From: Mathew, Bindhu [SMTP:[EMAIL PROTECTED]] > Sent: Friday, December 14, 2001 1:47 PM > To: '[EMAIL

RE: SMTPAppender - again

2001-09-25 Thread Michael Roytman
Mathew, you need to extend TriggeringEventEvaluator with your priority and then pass it to SMTPAppender constructor. class DebugEvaluator implements TriggeringEventEvaluator { /** Lowest priority will trigger e-mail. It is up to mailFilter to filter on Priority to control the amou

RE: SMTPAppender exception

2001-09-12 Thread Cooper, Henry J.
Title: RE: SMTPAppender exception > This is a common problem with JavaMail. If you do a google search for > "no provider for address type rfc822" you should find the answer - I > suspect it's a classpath problem. Thanks Jon. Google pointed me to a FAQ on jGuru.com

Re: SMTPAppender exception

2001-09-12 Thread Ram Peleg
Hi Henry I've had the same problem. Did you get the correct mailhost? (check with ping!) if yes, then make sure you have the following files in your "mail.jar" : "javamail.default.providers", "javamail.default.address.map" and "javamail.charset.map". Hope it helps... Rami

RE: SMTPAppender exception

2001-09-12 Thread Jon Skeet
> I'm having trouble with the SMTPAppender. Hope someone can help. > When I use the SMTPAppender I get the following error: > log4j:ERROR Error occured while sending e-mail notification. > javax.mail.NoSuchProviderException: No provider for Address type: rfc822 This is a common problem with Ja

RE: SMTPAppender on Linux box ??

2001-08-22 Thread Thomas Tuft Muller
Mailing List; [EMAIL PROTECTED] | Subject: Re: SMTPAppender on Linux box ?? | | | E, | | I think I missed something. Is the SMTPAppender included in Log4J ?? | I just checked the log4j doc's and the SMTPAppender doesn't appear in the | list of appenders !!?? | | What is happening ?

Re: SMTPAppender on Linux box ??

2001-08-22 Thread Eddie Post
er <[EMAIL PROTECTED]> To: LOG4J Users Mailing List <[EMAIL PROTECTED]> Sent: Wednesday, August 22, 2001 12:10 PM Subject: RE: SMTPAppender on Linux box ?? > The sourcecode for Log4j can be downloaded from > http://jakarta.apache.org/log4j/docs/download.html. > > You don'

RE: SMTPAppender on Linux box ??

2001-08-22 Thread Thomas Tuft Muller
The parameters is easy extractable from the JavaDoc. Hope this helps -- Thomas | -Original Message- | From: Eddie Post [mailto:[EMAIL PROTECTED]] | Sent: 22 August 2001 11:08 | To: LOG4J Users Mailing List | Subject: Re: SMTPAppender on Linux box ?? | | | Thanks Nicolas. | | I will have a lo

Re: SMTPAppender on Linux box ??

2001-08-22 Thread Eddie Post
LOG4J Users Mailing List <[EMAIL PROTECTED]> Sent: Wednesday, August 22, 2001 11:25 AM Subject: Re: SMTPAppender on Linux box ?? > JavaMail is just an API to send mail using the SMTP protocol. > > sendmail is a program able to accept mail through SMTP connections, and rou

Re: SMTPAppender on Linux box ??

2001-08-22 Thread Nicolas
JavaMail is just an API to send mail using the SMTP protocol. sendmail is a program able to accept mail through SMTP connections, and route it appropriately. Because the mail transport is layered behind SMTP, javamail does not have to know what MTA (Mail Transport Agent) is accepting the SMTP

Re: SMTPAppender on Linux box ??

2001-08-22 Thread Eddie Post
Noc noc ?? Can someone please help me with this question I posted last week (see below) ? Ed - Original Message - From: Eddie Post <[EMAIL PROTECTED]> To: LOG4J Users Mailing List <[EMAIL PROTECTED]> Sent: Friday, August 17, 2001 6:37 PM Subject: SMTPAppender on Linux box ?? > Hellu,

Re: SMTPAppender on Linux box ??

2001-08-17 Thread Eddie Post
Thanks, but that's only the configuration. But, what should I configure when I don't know what to configure ? Where do I start ? Eddie - Original Message - From: <[EMAIL PROTECTED]> To: LOG4J Users Mailing List <[EMAIL PROTECTED]> Sent: Friday, August 17, 20

Re: SMTPAppender on Linux box ??

2001-08-17 Thread priyank . johri
We use something like this on a Sun box: log4j.rootCategory=, A_JMS, A_SMTP # A_SMTP is set to SMTP Appender log4j.appender.A_SMTP=org.apache.log4j.net.SMTPAppender [EMAIL PROTECTED] log4j.appender.A_SMTP.From=god log4j.appender.A_SMTP.Subject=Buggs log4j.appender.A_SMTP.SMTPHost= log4j.app

Re: SMTPAppender not sending context

2001-07-17 Thread Nicolas Marchildon
In fact, SMTPAppender does exactly what I want. It did not work only because I did the mistake of setting its threshold parameter to ERROR instead of DEBUG. Thanks anyway, Nicolas On Monday 16 July 2001 20:44, you wrote: > At 18:52 16.07.2001 -0400, Nicolas Marchildon wrote: > >Hi, > > > >I h

Re: SMTPAppender not sending context

2001-07-16 Thread Ceki Gülcü
At 18:52 16.07.2001 -0400, Nicolas Marchildon wrote: >Hi, > >I have a critical process that I want to monitor. Whenever there is an error, I >want to be emailed all the debugging information, consisting of the DEBUG >statements starting from the beginning of the process. > >At the beggining of the

Re: SMTPAppender, Feature Request?

2001-06-27 Thread Marco Ladermann
On Wednesday, 27. June 2001 12:07, you wrote: > Is finalise always called on JVM shutdown? Not log4j specific, but I > wasn't sure if finalise was called when the JVM exits. You'r right, finalize is not guaranteed to be called, because the jvm may terminate (normally) without calling the garbag

Re: SMTPAppender, Feature Request?

2001-06-27 Thread SCOTT FARQUHAR
I don't know too much about this, but wouldn't you be better using SocketAppender, and then from there sending the email? You would then have the logging implemented in a separate JVM, and would be immune to crashes that would affect buffering of data. Is finalise always called on JVM shutdown

Re: SMTPAppender

2001-06-06 Thread Gray Jones
Title: SMTPAppender Not exactly sure if this is what you were asking for.  But here is an entry we currently use to email error logs.  This works for individual logs.  If you are asking about how to attach a file to an email then this wouldn't help you to do that   #*

Re: SMTPAppender

2001-03-29 Thread Ceki Gülcü
Here is an example: log4j.rootCategory=DEBUG, SMTP log4j.configDebug=true log4j.appender.SMTP=org.apache.log4j.net.SMTPAppender [EMAIL PROTECTED] [EMAIL PROTECTED] # The following is the most important parameter: log4j.appender.SMTP.SMTPHost=your.smtp.host.here log4j.appender.SMTP.Subject=

RE: SmtpAppender for ERROR conditions

2001-02-24 Thread Rex Madden
I believe by default, the SMTPappender only logs errors and fatals, so you should just be able to add it to your original root category (or you can keep using your .com category, it doesn’t matter).  Each appender also has a threshold option, whereby you can set it to only log errors and h

Re: SmtpAppender for ERROR conditions

2001-02-23 Thread Ceki Gülcü
Wes, First, have a look at the Threshold option in AppenderSkeleton. Second, by default the SMTPAppender will hold and buffer logging messages of any priority and trigger an email message when an error occurs with all the logs in the buffer. Hope this helps, Ceki At 14:01 23.02.2001 -0600, W

RE: SMTPAppender and exceptions

2001-02-06 Thread Jim Moore
Tuesday, February 06, 2001 12:53 PM To: LOG4J Users Mailing List Subject: Re: SMTPAppender and exceptions Omer, This is a bug! The SMTPAppender assumes that its layout takes care of the exception, which is not the case with the PatternLayout. I suggest that you use the HTMLLayout with SMTPAppende

Re: SMTPAppender and exceptions

2001-02-06 Thread Ceki Gülcü
Omer, This is a bug! The SMTPAppender assumes that its layout takes care of the exception, which is not the case with the PatternLayout. I suggest that you use the HTMLLayout with SMTPAppender until the bug gets fixed. Ceki At 12:48 06.02.2001 -0500, you wrote: >Hi, > >I'm using SMTPAppender

RE: SMTPAppender buffer size

2001-02-06 Thread Ceki Gülcü
ubclass SMTPAppender so that the derived classt always used a TriggerAfter40LogEvents (or a TriggerOnCount). You can also enforce a policy such that BufferSize always equaled the triggering count. Regards, Ceki >-Message d'origine----- >De : Ceki Gülcü [<mailto:[EM

RE: SMTPAppender buffer size

2001-02-06 Thread BRANDHOF Simon
Title: RE: SMTPAppender buffer size Thanks. I understand better now. So to send a mail with 40 logs of ERROR priority level, and no logs of other priority, the best way should be

RE: SMTPAppender buffer size

2001-02-06 Thread Ceki Gülcü
rstand its goal... > >Simon BRANDHOF >-Message d'origine- >De : Jim Moore [mailto:[EMAIL PROTECTED]] >Envoyé : lundi 5 février 2001 23:33 >À : 'LOG4J Users Mailing List' >Objet : RE: SMTPAppender buffer size > >Hacking something out, it wou

RE: SMTPAppender buffer size

2001-02-06 Thread BRANDHOF Simon
23:33À : 'LOG4J Users Mailing List'Objet : RE: SMTPAppender buffer size Hacking something out, it would be:   public TriggerAfter40LogEvents implements TriggeringEventEvaluator {   private int count;   public TriggerAfter40LogEvents() {     count = 0;

RE: SMTPAppender buffer size

2001-02-05 Thread Jim Moore
Title: SMTPAppender buffer size Hacking something out, it would be:   public TriggerAfter40LogEvents implements TriggeringEventEvaluator {   private int count;   public TriggerAfter40LogEvents() {     count = 0;   }   public boolean isTriggeringEvent(LoggingEvent event) {     if (count

Re: SMTPAppender buffer size

2001-02-05 Thread Ceki Gülcü
Is your first message an error or fatal? Ceki At 12:37 05.02.2001 +0100, you wrote: >Hi, > >I hava problems using the 'BufferSize' option of the SMTPAppender. >Whatever its value, it always sends one mail by log. > >Does anyone know how could I send a mail after only N logs ? > >Thanks --

RE: SMTPAppender

2001-01-30 Thread Ceki Gülcü
At 09:47 30.01.2001 +0100, you wrote: >Hi, thanks for your help! >Now I've managed to send my first loggingmail using log4j. > >Do you know if you can set up a SMTPAppender >without using a configurationfile? > >For the FileAppender I do the following and it works: > >// For logging. >private Cate

RE: SMTPAppender

2001-01-30 Thread Ahlin, Mattias
smtpa.setOption(SMTPAppender.EVALUATOR_CLASS_OPTION, "fully.qualified.name.MailEventEvaluator"); // Add the SMTPAppender to the Category. cat.addAppender(smtpa); Can you see what the problem is? --Mattias Ahlin > -Original Message- > From: Ayehou Mesfin [mailto:[EMAIL PROTECTED]] > Se

Re: SMTPAppender

2001-01-29 Thread Ayehou Mesfin
I myself had a hard time to figure out that the event triggering the SMTPAppender has to at least be an ERROR event, i.e. you will not get any email if the event is with less priority than error. To make that happen you have to write your own EventEvaluator. I have included the piece of code whic