Re: SmtpAppender in log4j2, plus how to reconfigure everything

2025-06-04 Thread Piotr P. Karwasz
Hi Chris, On 1.06.2025 17:36, Christopher Schultz wrote: > This is also very helpful. It sounds like I need a filter that simply > does not pass anything (i.e. filters everything). That would cause the > SmtpAppender to hold everything together. At the end (this is a > scheduled p

Re: SmtpAppender in log4j2, plus how to reconfigure everything

2025-06-01 Thread Christopher Schultz
Piotr, On 6/1/25 4:47 AM, Piotr P. Karwasz wrote: Hi Chris, On 30.05.2025 20:23, Christopher Schultz wrote: For my purposes, I need to be able to: 1. Attach custom headers to SMTP messages. I did this by creating a custom subclass[1] of SMTPAppender that overrides activateOptions and sets

Re: SmtpAppender in log4j2, plus how to reconfigure everything

2025-06-01 Thread Piotr P. Karwasz
Hi Chris, On 30.05.2025 20:23, Christopher Schultz wrote: > For my purposes, I need to be able to: > > 1. Attach custom headers to SMTP messages. > > I did this by creating a custom subclass[1] of SMTPAppender that > overrides activateOptions and sets whatever headers

SmtpAppender in log4j2, plus how to reconfigure everything

2025-05-30 Thread Christopher Schultz
All, A few years ago, I posted to this list with the subject "[log4j 1.x] Batch-sending with SMTPAppender". I can't seem to find it on lists.a.o for a reference. Sorry. Anyhow, I'm really trying to make the switch to log4j2 but there are just so many things that d

Configuring SMTPAppender

2017-10-18 Thread John Dison
Hello, I want to use SMTPAppender in the following way: 1) send e-mail only when the predefined number of errors are accumulated. As far as I understand, I can achieve this via custom Evaluator class 2) If some predefined period of time passed and no e-main was sent so far (because the

Re: Suppressing exceptions from SMTPAppender [log4j 1.3]

2017-07-12 Thread Ralph Goers
; wrote: > >> All, >> >> I've got an SMTPAppender logging errors, etc. and I'd like to remove the >> exceptions from the log messages. Is there a good way to do that? >> >> Remember: log4j 1.3.x (for now) >> >> I happen to already be using

Re: Suppressing exceptions from SMTPAppender [log4j 1.3]

2017-07-12 Thread Matt Sicker
Log4j 1.3? The last version of 1.x was 1.2.17 which is EOL. On 12 July 2017 at 13:13, Christopher Schultz wrote: > All, > > I've got an SMTPAppender logging errors, etc. and I'd like to remove the > exceptions from the log messages. Is there a good way to do that? > >

Suppressing exceptions from SMTPAppender [log4j 1.3]

2017-07-12 Thread Christopher Schultz
All, I've got an SMTPAppender logging errors, etc. and I'd like to remove the exceptions from the log messages. Is there a good way to do that? Remember: log4j 1.3.x (for now) I happen to already be using a subclass of SMTPAppender that I wrote (so only send after X number of lo

Re: [log4j 1.x] Batch-sending with SMTPAppender

2016-11-30 Thread Remko Popma
Details are here: https://blogs.apache.org/logging/entry/moving_on_to_log4j_2 Sent from my iPhone > On 1 Dec 2016, at 10:32, Christopher Schultz > wrote: > > Remko, > >> On 11/30/16 5:26 PM, Remko Popma wrote: >> Chris, >> >> Glad to hear that. >> >> Be aware that Log4j 1 is broken in Java

Re: [log4j 1.x] Batch-sending with SMTPAppender

2016-11-30 Thread Christopher Schultz
Remko, On 11/30/16 5:26 PM, Remko Popma wrote: > Chris, > > Glad to hear that. > > Be aware that Log4j 1 is broken in Java 9 so you will need to go to > Log4j 2 when you upgrade Java. I'm curious... in what way is log4j 1.x broken in Java 9? I've been meaning to switch to log4j 2.x for a numb

Re: [log4j 1.x] Batch-sending with SMTPAppender

2016-11-30 Thread Remko Popma
Chris, Glad to hear that. Be aware that Log4j 1 is broken in Java 9 so you will need to go to Log4j 2 when you upgrade Java. Remko Sent from my iPhone > On 1 Dec 2016, at 1:41, Christopher Schultz > wrote: > > All, > > On 11/17/16 10:28 AM, Christopher Schultz wrote: >>> So, I implement

Re: [log4j 1.x] Batch-sending with SMTPAppender

2016-11-30 Thread Christopher Schultz
All, On 11/17/16 10:28 AM, Christopher Schultz wrote: >> So, I implemented an event trigger class in my driver class like this: >> >> package com.my; >> public class Driver >> { >> [...] >> public static class NeverTriggeringEventEvaluator >> implements TriggeringEventEvaluator >>

Re: [log4j 1.x] Batch-sending with SMTPAppender

2016-11-17 Thread Christopher Schultz
All, On 11/17/16 10:20 AM, Christopher Schultz wrote: > All, > > On 11/16/16 5:33 PM, Christopher Schultz wrote: >> Scott, >> >> On 11/16/16 2:09 PM, Scott Harrington wrote: > On 11/16/16 9:49 AM, Ralph Goers wrote: >> First, I have to say that Log4j 1 reached end-of-life over a year

Re: [log4j 1.x] Batch-sending with SMTPAppender

2016-11-17 Thread Christopher Schultz
All, On 11/16/16 5:33 PM, Christopher Schultz wrote: > Scott, > > On 11/16/16 2:09 PM, Scott Harrington wrote: On 11/16/16 9:49 AM, Ralph Goers wrote: > First, I have to say that Log4j 1 reached end-of-life over a year > ago. We recommend you upgrade to Log4j 2. Fair enough

Re: [log4j 1.x] Batch-sending with SMTPAppender

2016-11-16 Thread Gary Gregory
You might not even need to change the configuration if you use the "org.apache.log4j.config" package in the "log4j-1.2-api" module , which is not well documented, yet. Gary On Wed, Nov 16, 2016 at 3:36 PM, Remko Popma wrote: > Chris, > > Are you aware that there is a log4j-1.2-api adapter inclu

Re: [log4j 1.x] Batch-sending with SMTPAppender

2016-11-16 Thread Remko Popma
Chris, Are you aware that there is a log4j-1.2-api adapter included in Log4j2 that allows you to keep your application code unchanged (unless you rely on the innards of Log4j 1.2)? You only need to change the configuration (the manual has tons of examples). Just FYI. Remko Sent from my iPho

Re: [log4j 1.x] Batch-sending with SMTPAppender

2016-11-16 Thread Gary Gregory
If you do look at Log4j2 it would be great if you could give us feedback on what is missing for your use case. I or others can help turn things around quickly to make Log4j 2 even better. Gary On Nov 16, 2016 2:33 PM, "Christopher Schultz" wrote: > Scott, > > On 11/16/16 2:09 PM, Scott Harringt

Re: [log4j 1.x] Batch-sending with SMTPAppender

2016-11-16 Thread Christopher Schultz
Scott, On 11/16/16 2:09 PM, Scott Harrington wrote: >>> On 11/16/16 9:49 AM, Ralph Goers wrote: First, I have to say that Log4j 1 reached end-of-life over a year ago. We recommend you upgrade to Log4j 2. >>> >>> Fair enough. I'm not quite there, yet. I suspect that log4j 2 will have >>>

Re: [log4j 1.x] Batch-sending with SMTPAppender

2016-11-16 Thread Scott Harrington
On 11/16/16 9:49 AM, Ralph Goers wrote: First, I have to say that Log4j 1 reached end-of-life over a year ago. We recommend you upgrade to Log4j 2. Fair enough. I'm not quite there, yet. I suspect that log4j 2 will have the same issue, though. I don’t know how to configure a TriggeringEventEv

Re: [log4j 1.x] Batch-sending with SMTPAppender

2016-11-16 Thread Ralph Goers
> On Nov 16, 2016, at 10:11 AM, Christopher Schultz > wrote: > > Ralph, > > On 11/16/16 9:49 AM, Ralph Goers wrote: >> First, I have to say that Log4j 1 reached end-of-life over a year >> ago. We recommend you upgrade to Log4j 2. > > Fair enough. I'm not quite there, yet. I suspect that log4j

Re: [log4j 1.x] Batch-sending with SMTPAppender

2016-11-16 Thread Gary Gregory
You might have to use an XML configuration file to get that to work in Log4j 1: See org.apache.log4j.net.SMTPAppenderTest.testTrigger() Gary On Wed, Nov 16, 2016 at 9:11 AM, Christopher Schultz < ch...@christopherschultz.net> wrote: > Ralph, > > On 11/16/16 9:49 AM, Ralph Goers wrote: > > First,

Re: [log4j 1.x] Batch-sending with SMTPAppender

2016-11-16 Thread Christopher Schultz
Ralph, On 11/16/16 9:49 AM, Ralph Goers wrote: > First, I have to say that Log4j 1 reached end-of-life over a year > ago. We recommend you upgrade to Log4j 2. Fair enough. I'm not quite there, yet. I suspect that log4j 2 will have the same issue, though. > I don’t know what you mean by “each log

Re: [log4j 1.x] Batch-sending with SMTPAppender

2016-11-16 Thread Ralph Goers
Nov 16, 2016, at 7:24 AM, Christopher Schultz > wrote: > > All, > > Apologies if this has been posted before.. I checked the archives but > it's hard to search for such terms... lots of stuff comes up. > > I have an SMTPAppender configured and it's working (mo

[log4j 1.x] Batch-sending with SMTPAppender

2016-11-16 Thread Christopher Schultz
All, Apologies if this has been posted before.. I checked the archives but it's hard to search for such terms... lots of stuff comes up. I have an SMTPAppender configured and it's working (mostly) as expected. The only problem is that each log message seems to generate its own sepa

Re: How to set email message header with SMTPAppender and PatternLayout

2014-07-22 Thread Remko Popma
oops... On Tue, Jul 22, 2014 at 9:37 PM, Gary Gregory wrote: > Remko shows 2.0 docs, this user is on 1.2... > > Gary > > > On Tue, Jul 22, 2014 at 7:40 AM, Remko Popma > wrote: > > > The PatternLayout has header/footer attributes to set some string for the > > beginning and end of each log fil

Re: How to set email message header with SMTPAppender and PatternLayout

2014-07-22 Thread Gary Gregory
Remko shows 2.0 docs, this user is on 1.2... Gary On Tue, Jul 22, 2014 at 7:40 AM, Remko Popma wrote: > The PatternLayout has header/footer attributes to set some string for the > beginning and end of each log file. > http://logging.apache.org/log4j/2.x/manual/layouts.html#PatternLayout > I'm

Re: How to set email message header with SMTPAppender and PatternLayout

2014-07-22 Thread Remko Popma
The PatternLayout has header/footer attributes to set some string for the beginning and end of each log file. http://logging.apache.org/log4j/2.x/manual/layouts.html#PatternLayout I'm not sure if it will be included in every email but it is worth trying. On Tue, Jul 22, 2014 at 8:29 PM, VolkerKop

How to set email message header with SMTPAppender and PatternLayout

2014-07-22 Thread VolkerKopetzky
Hi, I'm using log4j 1.2.15. The Appender used for email is: This works nicely, yet I would like to add additional email message headers to the message. Is that possible? If so, how can I add, for examp

Setting to, from, subject values from properties in log4j2 SMTPAppender

2013-12-16 Thread Rajiv Nair
Hi I'm using log4j 2.0-beta9. I have a question about the SMTP appender. I need to configure the subject, from and to values from properties. I'm logging a MapMessage and my config is as below - %d [%t] %-5p %c - %m%n

SMTPAppender with server using SSL and MD5 challenge-response authentication

2013-06-14 Thread Jens Ivar Jørdre
Hi I'm trying out Log4j 2 (2.0-beta7) in a project. I.e. in my code I use SLF4J, include Log4j 2 jars at runtime and assure by the use of Log4j 2 ConsoleAppender that my logging events indeed reach Log4j. Now I would like to extend my logging output by adding an SMTPAppender that will fo

Re: Two problems with SMTPAppender

2013-05-10 Thread Ralph Goers
OUT (BTW, > it should be made clear in docs/JavaDoc that isFiltered == true === > filtered OUT), and if so, it does not proceed to log it: > try { >appender.append(event); > > Now, SMTPAppender overrides this isFiltered() and in it, it adds to the > cycli

Re: Two problems with SMTPAppender

2013-05-10 Thread Matej Vitásek
} If I understand it correctly, it checks if the event is filtered OUT (BTW, it should be made clear in docs/JavaDoc that isFiltered == true === filtered OUT), and if so, it does not proceed to log it: try { appender.append(event); Now, SMTPAppender overrides this is

Re: Two problems with SMTPAppender

2013-05-10 Thread Remko Popma
believe this is correct behavior. Otherwise you may only have one ERROR >> and the email never gets sent because the appender is waiting for 9 more >> events... >> >> Best regards, >> Remko >> >> Sent from my iPhone >> >> On 2013/05/09, at 21:32,

Re: Two problems with SMTPAppender

2013-05-10 Thread Matej Vitásek
> > > Hi all, > > > > I'd like to report 2 problems I am encountering using the SMTPAppender. I > > am using it* to send me mails whenever an ERROR is logged in a web > > application. > > > > 1) Buffer size is ignored. Excerpt from my log4j2

Re: Two problems with SMTPAppender

2013-05-09 Thread Remko Popma
Sent from my iPhone On 2013/05/09, at 21:32, Matej Vitásek wrote: > Hi all, > > I'd like to report 2 problems I am encountering using the SMTPAppender. I > am using it* to send me mails whenever an ERROR is logged in a web > application. > > 1) Buffer size is ignored.

Two problems with SMTPAppender

2013-05-09 Thread Matej Vitásek
Hi all, I'd like to report 2 problems I am encountering using the SMTPAppender. I am using it* to send me mails whenever an ERROR is logged in a web application. 1) Buffer size is ignored. Excerpt from my log4j2.xml: You will notice that the buffer size is 10. I'd expect to be

Re: SMTPAppender & MDC

2012-06-07 Thread Jacob Kjome
Alternatively, if you want to stick with Log4j, try. http://openutils.sourceforge.net/openutils-log4j/smtpappender.html Jake On Thu, 07 Jun 2012 11:40:31 +0200  ceki wrote: Hi Zbynek, Have you looked at logback? Its SMTPAppender [1] supports dynamically setting the destination, thus

Re: SMTPAppender & MDC

2012-06-07 Thread ceki
Hi Zbynek, Have you looked at logback? Its SMTPAppender [1] supports dynamically setting the destination, thus addressing your requirement. See also the document entitled "Triggering an email containing the isolated logs of selected transactions" [2] and in particular the section

SMTPAppender & MDC

2012-06-07 Thread Zbynek Vavros
Hi, Im using SMTPAppender with MDC to send emails with custom subject and its working very nicely. Now, I would like to specify email receivers according to MDC value, like : MDC="a" -> "1...@email.com, 2...@email.com" MDC="b" -> "3...@emai.

SMTPAppender should be able to use JNDI mail sesssions

2012-02-27 Thread Eduard Gurskiy
Hi, According to issue 35259: https://issues.apache.org/bugzilla/show_bug.cgi?id=35259 SMTPAppender allows using JNDI references to mail sessions. But I don't see this possibility in javadoc and source code. Could you clarify, how can I use it? Thanks. Br, Eduard Gurskiy

Re: SMTPAppender Problems

2012-01-30 Thread Jonathan Rosenberg
tests.  I see the console output, but except for 1 case (out of >> dozens), there was no SMTP activity. >> >> I then timed adding my own EvaluatorClass to see what was going on: >> >>                > value='org.tabbysplace.casServer.Evaluator' /> >&

Re: SMTPAppender Problems

2012-01-29 Thread Jacob Kjome
1 case (out of dozens), there was no SMTP activity. I then timed adding my own EvaluatorClass to see what was going on: /> This class writes to the console and tehn returns true.  The class is never called.  It's as if the SMTPappender is heing ignored. Any ideas? -- Jonathan Rosenber

SMTPAppender Problems

2012-01-28 Thread Jonathan Rosenberg
: This class writes to the console and tehn returns true. The class is never called. It's as if the SMTPappender is heing ignored. Any ideas? -- Jonathan Rosenberg Founder & Executive Director Tabby's Place, a Cat Sanctuary http://www.t

Re: SMTPAppender , server instance

2011-11-18 Thread Zbynek Vavros
chhoch To: log4j-user@logging.apache.org Date: 11/16/2011 06:04 PM Subject: Re: SMTPAppender , server instance I will like to try the second approach , my log4j is initialized by spring , I have org.springframework.web.context.ContextLoaderListener in

Re: SMTPAppender , server instance

2011-11-16 Thread fachhoch
>Zapsaná v obchodním > rejstříku, vedeném > Krajským soudem v Brně > oddíl C, vlozka 39922

Re: SMTPAppender , server instance

2011-11-16 Thread Jacob Kjome
gging.apache.org Date: 11/16/2011 04:29 PM Subject:Re: SMTPAppender , server instance Thanks for your reply, If I  use param then I have  to send different deployments to different servers whihc I dont want .  Can I  plugin some code  which appends the system name  (I mean host name o

Re: SMTPAppender , server instance

2011-11-16 Thread Zbynek Vavros
Krajským soudem v Brně oddíl C, vlozka 39922 From: fachhoch To: log4j-user@logging.apache.org Date: 11/16/2011 04:29 PM Subject:Re:

Re: SMTPAppender , server instance

2011-11-16 Thread fachhoch
s with the Subject param? > > From log4j wiki: > > name="AdministratorEmail" > class="org.apache.log4j.net. > SMTPAppender"> > ... > > > Brett > > On 11/16/11, fachhoch wrote: >> >> I am want to use org.apache.log4j.

Re: SMTPAppender , server instance

2011-11-15 Thread Brett Randall
oduction , staging , training , development > instance. > SMTPAppendersend out email but I cannot tell if this exception happened > in production, staging,development , training environment, any suggestions? > I prefer not to change code for each instance deployment. > > >

SMTPAppender , server instance

2011-11-15 Thread fachhoch
I am want to use org.apache.log4j.net.SMTPAppender , can this appender append the system name when sending email ? Our code will be deployed to production , staging , training , development instance. SMTPAppendersend out email but I cannot tell if this exception happened in

Re: SMTPAppender not asynchronous using AsyncAppender

2011-10-13 Thread Curt Arnold
ncAppender. > > I am using SMTPAppender and hooked it up with AsyncAppender ( ref="mail"/>) > > Did anyone else notice this? Can we send emails asynchronously at all? > > > Thanks in advance, > > Amit > > > > > > > -- > View

Re: SMTPAppender not asynchronous using AsyncAppender

2011-10-13 Thread Radhika81
It is not working for me as well. I am making use of a customized SMTPAppender class for my application purposes. It is not even entering this class. If I remove async way, it is working fine. With async enabled, if I give the mailhost wrongly, no exception is thrown back. Please help Here is

Re: using of system properties in subject of SMTPAppender

2011-05-26 Thread Jacob Kjome
You might be interested in the "it.openutils.log4j.AlternateSMTPAppender" [1].  It allows for dynamic subjects and more.  Note that I am not affiliated with this project.  I just found it to be useful. [1] http://www.openmindlab.com/lab/tools/openutilslog4j/smtp.html Jake On Mon, 23 May

RE: [SCL-3] using of system properties in subject of SMTPAppender

2011-05-25 Thread Zbynek Vavros
Hi, thx for advice but since default SMTPAppender does not allow usage of PatternLayout in subject I needed to implement this by extedning usual SMTPAppender. Now it works just fine :) Kind Regards / Mit

RE: [SCL-3] using of system properties in subject of SMTPAppender

2011-05-25 Thread Zbynek Vavros
Hi Heri, thanks a lot for this advice but if I am correct I can use %X{CUSTOMER} only in PatternLayout. Then I need to create my own implementation of SMTPAppender and this is what i wanted to avoid. Any chance it can be done without custome implementation? Thx

Re: using of system properties in subject of SMTPAppender

2011-05-24 Thread Curt Arnold
ot; encountered unexpected exception";. logger.error(msg, e); } If you really want it in the subject, you will likely need to extend SMTPAppender. You could create an object that represents the combination of the server context and the message (or just the context if you don't ne

RE: [SCL-3] using of system properties in subject of SMTPAppender

2011-05-24 Thread Bender Heri
using of system properties in subject of SMTPAppender > > > > Hi, > > I have a 1 server app and many clients app on different servers. > Obviously I wanted to know from which server the email comes, > so I used > this: > > log4j.xml > > >

using of system properties in subject of SMTPAppender

2011-05-23 Thread Zbynek Vavros
Hi, I have a 1 server app and many clients app on different servers. Obviously I wanted to know from which server the email comes, so I used this: log4j.xml and since system property has to

New Appender: EventConsolidatingAppender (useful with SMTPAppender)

2011-02-21 Thread Matt Klein
forwarded to a "downstream" appender. EventConsolidatingAppender is probably most useful when the downstream appender is SMTPAppender. In this case, you can use EventConsolidatingAppender so that if, say, 200 errors are raised to a given logger within 30 seconds, instead of receiving

RE: Custom EvaluatorClass with SMTPAppender when returning true sends PREVIOUS log message

2011-02-15 Thread Papierman, Paul
ffersize=1 I did solve the problem, but I will lose some context in the email sent. From: Papierman, Paul Sent: Tuesday, February 15, 2011 11:34 AM To: 'log4j-user@logging.apache.org' Subject: Custom EvaluatorClass with SMTPAppender when returning true sends PREVIOUS log message 1

Custom EvaluatorClass with SMTPAppender when returning true sends PREVIOUS log message

2011-02-15 Thread Papierman, Paul
1) I've created a custom Evaluator class that I wish to use for the SMTPAppender to not send the same emails for errors over a period of time. 2) I've added it to my log4j.xml configuration: m

Re: SMTPAppender: empty Subject and To

2010-06-10 Thread DBW
I confirmed that my problem was unrelated to log4j and SMTPAppender but was instead caused by geronimo-javamail-1.4_spec-1.3.jar. The geronimo-javamail .jar is distributed with Apache CXF and listed as a dependency for CXF, but a search shows that others have had mail formatting problems when

Re: SMTPAppender: empty Subject and To

2010-06-05 Thread DBW
lpool Corporation (269)-923-5278 "A wrong note played hesitatingly is a wrong note. A wrong note played with conviction is interpretation." DBW wrote on 06/02/2010 06:00:19 PM: > I've successfully configured SMTPAppender to send email, and am > receiving emails, but the "

Re: SMTPAppender: empty Subject and To

2010-06-03 Thread Douglas E Wegscheid
, Whirlpool Corporation (269)-923-5278 "A wrong note played hesitatingly is a wrong note. A wrong note played with conviction is interpretation." DBW wrote on 06/02/2010 06:00:19 PM: > I've successfully configured SMTPAppender to send email, and am > receiving emails, but t

SMTPAppender: empty Subject and To

2010-06-02 Thread DBW
I've successfully configured SMTPAppender to send email, and am receiving emails, but the "Subject" field is always empty, and the "To" field is always "undisclosed-recipients" rather than the email address of the recipient(s). Am I doing something wrong? Is

Re: dynamic subject in SMTPAppender

2009-12-15 Thread offbyone
ere a way to put dynamic subjects in the subjects? > > > -- View this message in context: http://old.nabble.com/dynamic-subject-in-SMTPAppender-tp26753869p26800355.html Sent from the Log4j - Users mailing list archive at Nabble.com. ---

dynamic subject in SMTPAppender

2009-12-11 Thread offbyone
ext: http://old.nabble.com/dynamic-subject-in-SMTPAppender-tp26753869p26753869.html Sent from the Log4j - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org For additiona

Re: Concatenate DailyRollingFileAppender and SMTPAppender

2009-12-04 Thread Curt Arnold
The RollingFileAppender framework in the extras companion (http://logging.apache.org/log4j/companions/extras/index.html) would be a better starting point. Much more designed for extensibility than DailyRollingFileAppender but offers the same features when properly configured. You should be ab

Fwd: Concatenate DailyRollingFileAppender and SMTPAppender

2009-12-04 Thread JOSE L MARTINEZ-AVIAL
Hello, Does anyone know if it's possible to "concatenate" two appenders? I have setup a DRFA that rollovers at midnight, and I'd like it to send the file it generates by mail to a certain mail address. I know I can modify the DRFA to do that, but I wonder if such behaviour is already contemplat

Re: Error storms with SMTPAppender

2009-07-29 Thread Curt Arnold
On Jul 29, 2009, at 10:09 AM, pedrofaundez...@terra.es wrote: Loren Siebert wrote: You could try using the StackHub service. http://www.stackhub.com The use case you describe below is the main reason I built StackHub. It will coalesce these errors (even across multiple instances of your

Re: Error storms with SMTPAppender

2009-07-29 Thread pedrofaundez...@terra.es
Loren Siebert wrote: > You could try using the StackHub service. >http://www.stackhub.com > > The use case you describe below is the main reason I built StackHub. > It will coalesce these errors (even across multiple instances of your > app) and you'll get just one notification until you ma

Re: Error storms with SMTPAppender

2009-07-29 Thread Loren Siebert
em, I would like to by default group all errors that happen in a minute and then send them. Is there a way to do that with SMTPAppender? Ahora también puedes acceder a tu correo Terra desde el móvil. Infórmate pinchando

Error storms with SMTPAppender

2009-07-29 Thread pedrofaundez...@terra.es
a minute and then send them. Is there a way to do that with SMTPAppender? Ahora también puedes acceder a tu correo Terra desde el móvil. Infórmate pinchando aquí.

how to config SMTPAppender for using gmail

2009-06-28 Thread jayakumar t
hi, I am using log4j in my project , my problem is, I am getting an exception log4j:ERROR Error occured while sending e-mail notification. com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.0 Must issue a STARTTLS command first. f21sm25128997rvb.36 at com.sun.mail.smtp.SMTPTransport.issueSendCo

SMTPAppender not sending email issue

2009-05-20 Thread power97
Hi, I'm using a custom EvaluatorClass for my SMTPAppender that will only send after 5 logged error or fatal messsages. However , if I only have 1 error in my script then I don't get any email. The issue is I don't want to get an email everytime there is an error in my script (

SMTPAppender on Linux

2009-03-11 Thread Thomas Ricaud
When I include the following smtp appender (name MAIL ) line in my log4j.properties my java application crash with not a single line of log. # --- # Log4J Loggers # level order OFFhttp://www.nabble.com/SMTPAppender-on

Re: SMTPAppender not asynchronous using AsyncAppender

2009-02-03 Thread alkuin
amitshinde wrote: > > Did anyone else notice this? Can we send emails asynchronously at all? > I am using log4j-1.2.15 in Tomcat 5.5. Sending emails asynchronously seems to work with an in the root and an in the "async" appender. "mail" is the name of the SMTPAp

SMTPAppender not asynchronous using AsyncAppender

2009-01-06 Thread amitshinde
Hello Everyone, I am trying to send asynchronous error emails using log4j. I was successfully able to get the emails but it looks like the emails are synchronous and block the event processing till the email is sent. This happens inspite of using AsyncAppender. I am using SMTPAppender and

Re: Problem in using SMTPAppender with gmail

2008-12-12 Thread Joe White
According to the stack trace, authentication failed. javax.mail.AuthenticationFailedException          at javax.mail.Service.connect(Service.java:319)          at javax.mail.Service.connect(Service.java:169)          at javax.mail.Service.connect(Service.java:118)          at javax.mail.Tra

Re: Problem in using SMTPAppender with gmail

2008-12-12 Thread S K
Hello All, I am trying out a simple application to test log4j to send out email through gmail. I have followed the instructions by VMMM. So this is how my code looks: public class LogCheck { private static Logger log; public static void main(String args[]) { System.setProperty

Re: SMTPAppender

2008-12-05 Thread AJ Weber
t just yet. Seems like a very common thing for people to do, so much so, that an option to "wrap itself" in an async appender would be a good idea? Thanks, AJ - Original Message - From: "Joe White" <[EMAIL PROTECTED]> To: Sent: Wednesday, December 03, 2008

RE: SMTPAppender

2008-12-04 Thread Steve Ash
loper [EMAIL PROTECTED] -Original Message- From: Massimo Quagliani [mailto:[EMAIL PROTECTED] Sent: Thursday, December 04, 2008 12:35 PM To: Log4J Users List Subject: RE: SMTPAppender I tried: telnet mail.libero.it 25 Trying 212.52.84.54... telnet: Unable to connect to remote host: Conne

RE: SMTPAppender

2008-12-04 Thread Joe White
vedì 4 dicembre 2008 19.11 To: Log4J Users List Subject: AW: SMTPAppender Try a standalone tool in order to open this socket.  E.g. castalia  socktest (free download), or even telnet in your command prompt: Telnet host port heri -Ursprüngliche Nachricht- Von: Massimo Quagliani [mailto:

AW: [SPAM (Keyword Checking)] - RE: SMTPAppender - Found word(s) list error in the Text body

2008-12-04 Thread Bender Heri
- Von: Massimo Quagliani [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 4. Dezember 2008 19:35 An: Log4J Users List Betreff: [SPAM (Keyword Checking)] - RE: SMTPAppender - Found word(s) list error in the Text body I tried: telnet mail.libero.it 25 Trying 212.52.84.54... telnet: Unable to connect

RE: SMTPAppender

2008-12-04 Thread Massimo Quagliani
-Original Message- From: Bender Heri [mailto:[EMAIL PROTECTED] Sent: giovedì 4 dicembre 2008 19.11 To: Log4J Users List Subject: AW: SMTPAppender Try a standalone tool in order to open this socket. E.g. castalia socktest (free download), or even telnet in your command prompt: Telnet host port heri

AW: SMTPAppender

2008-12-04 Thread Bender Heri
Users List Betreff: RE: SMTPAppender Please, could you explain in detail what you would do in this situation? I didn't figure out your suggestion. /Max -Original Message- From: Joe White [mailto:[EMAIL PROTECTED] Sent: giovedì 4 dicembre 2008 17.45 To: log4j-user@logging.apach

RE: SMTPAppender

2008-12-04 Thread Massimo Quagliani
Please, could you explain in detail what you would do in this situation? I didn't figure out your suggestion. /Max -Original Message- From: Joe White [mailto:[EMAIL PROTECTED] Sent: giovedì 4 dicembre 2008 17.45 To: log4j-user@logging.apache.org Subject: RE: SMTPAppender

RE: SMTPAppender

2008-12-04 Thread Joe White
er.java:189)         at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1359)         ... 28 more -Original Message- From: Joe White [mailto:[EMAIL PROTECTED] Sent: mercoledì 3 dicembre 2008 20.26 To: log4j-user@logging.apache.org Subject: Re: SMTPAppender     Gmail

RE: SMTPAppender

2008-12-04 Thread Massimo Quagliani
Message- From: Joe White [mailto:[EMAIL PROTECTED] Sent: mercoledì 3 dicembre 2008 20.26 To: log4j-user@logging.apache.org Subject: Re: SMTPAppender Gmail SMTP server requires TLS and it does not use the default port of 25. According to this link: http://mail.google.com/support/bin

Re: SMTPAppender

2008-12-03 Thread Joe White
t a log4j 1.2.16 soon. " Quoting Massimo Quagliani <[EMAIL PROTECTED]>: Hi, I have the following problem using SMTPAppender, Actually the email does not arrive to the mailbox and I got the following error: log4j:ERROR Error occured while sending e-mail notification. javax.mai

SMTPAppender

2008-12-03 Thread Massimo Quagliani
> Hi, > I have the following problem using SMTPAppender, > Actually the email does not arrive to the mailbox and I got the > following error: > > log4j:ERROR Error occured while sending e-mail notification. > javax.mail.MessagingException: Could not connect to SMTP host: &

How to send email with SMTPAppender only once when the application is done

2008-10-08 Thread geek.shrek
Is it possible to send an email only once? For example I want to send all the WARNING and ERROR when the application has finish. Thanks,

Re: Problem in using SMTPAppender with gmail

2008-10-03 Thread Curt Arnold
On Oct 3, 2008, at 4:57 AM, Thorbjørn Ravn Andersen wrote: RMMM skrev den 28-09-2008 05:46: I succeeded in getting this to work (using log4j to send logging messages by smtp over ssl). I think it's appalling that log4j doesn't do this, and it isn't mentioned anywhere in the documentatio

Re: Problem in using SMTPAppender with gmail

2008-10-03 Thread Thorbjørn Ravn Andersen
RMMM skrev den 28-09-2008 05:46: I succeeded in getting this to work (using log4j to send logging messages by smtp over ssl). I think it's appalling that log4j doesn't do this, and it isn't mentioned anywhere in the documentation. I even bought the complete manual for $20, but it doesn't say a

Re: Problem in using SMTPAppender with gmail

2008-09-28 Thread Virajith KHP
Hello, Thank you very much.. It works.. Cheers, Virajith -- Experience Leads To Success ! Keep In Touch with Viraj...

Re: Problem in using SMTPAppender with gmail

2008-09-27 Thread RMMM
t look at that, so you need to set mail.smtps.host. If you need to use password authentication, you need to also set: System.setProperty("mail.smtps.auth", "true"); The reason for this is similar to above. SMTPAppender will set mail.smtp.auth, but that won't have an

Re: Problem in using SMTPAppender with gmail

2008-09-27 Thread Virajith KHP
Hello, By visiting lots of websites I also came to know that property - "mail.smtp.starttls.enable","true" is required to send the requested STARTTLS command. So I put the code, *System.setProperty("mail.smtp.starttls.enable", "true"); *inside the main method of my application. But now I'm getti

Re: Problem in using SMTPAppender with gmail

2008-09-27 Thread Curt Arnold
s, KHP Virajith I'm modified my local copy of SMTPAppender to add a protocol and port attributes, but it didn't work as expected with the particular JVM that I tried (Mac, JDK 1.5). There were some behavior that was not consistent, so I intended to check on a different JVM but go

Re: Problem in using SMTPAppender with gmail

2008-09-27 Thread Virajith KHP
Hello, Sorry still I couldn't get it solved. It's really amazing fact that no forum/IT website answered this question. I'm still trying to solve the issue but always im getting that error i have mentioned in my post.. Regards, KHP Virajith

Re: Problem in using SMTPAppender with gmail

2008-09-26 Thread RMMM
message in context: http://www.nabble.com/Problem-in-using-SMTPAppender-with-gmail-tp19570697p19699715.html Sent from the Log4j - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

  1   2   3   >