AW: smtp appender - no email send

2013-07-31 Thread Stadelmann Josef
If you have somewhere a real SMTP host, the one you send your personal outgoing e-mails to; why not use that smtp host to test your smtp sender. use that host once for a test and define (not to forget) some user credentials too. Then generate a log.debug messge and see what happens; what I do

Re: smtp appender - no email send

2013-07-31 Thread dev2013
Yipiee, have solved it :) Needed following definition: log4j.rootCategory=DEBUG, Console, R, EMAIL I´ve checked active Loggers with this code, Emails wasn´t in the list: Logger l = logger.getRootLogger(); Enumeration e = l.getAllAppenders(); while(e.hasMoreElements()) { Appender a = (A

Re: smtp appender - no email send

2013-07-31 Thread dev2013
Hello Gokul, thanks, i took care about this. There is an error event, which is logged by console and file appender. [2013-07-31 10:36:28,923] ERROR [FtpClient.connect]connect: Address is invalid on local machine, or port is not valid on remote machine

Re: smtp appender - no email send

2013-07-31 Thread gokulvsmail
By default behavior log4j will only send the log messages when a ERROR event is happening. For testing try by create some error loggs. gokul On Wednesday 31 July 2013 03:23 PM, dev2...@stefanclos.de wrote: Hello, i configured an smtp appender to get log messages by email. Console and File App

smtp appender - no email send

2013-07-31 Thread dev2013
Hello, i configured an smtp appender to get log messages by email. Console and File Appenders work well, but the smtp appender seems not to do anything. Any ideas ? How can i debug this, i didn´t get any error messages from log4j ? LOG4J Configuration: log4j.appender.email=org.apache.log4j.