Suppress DEBUG SMTP in catalina.out
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Keita_Inoue
Posted On:   Thursday, February 16, 2006 05:03 PM

Hi, My knowledge with Tomcat environment is still very limited so please do point out if I need to add more details in order to help solve this issue. Tomcat 5.0.30 log4j 1.2.13 I have my log4j.rootLogger configured so it only outputs ERROR in my log4j.properties Every time my application sends email using javamail, it outputs DEBUG info that includes the html codes of the actual email into my catalina.out significantly increasing the file size. I would like to know how I can turn off this DEBUG (or change it to WARN/ERROR) so my catalina.out size remains under control. Here's the snippets of the DEBUG output:    More>>

Hi,

My knowledge with Tomcat environment is still very limited so please do point out if I need to add more details in order to help solve this issue.



Tomcat 5.0.30

log4j 1.2.13



I have my log4j.rootLogger configured so it only outputs ERROR in my log4j.properties



Every time my application sends email using javamail, it outputs DEBUG info that includes the html codes of the actual email into my catalina.out significantly increasing the file size.



I would like to know how I can turn off this DEBUG (or change it to WARN/ERROR) so my catalina.out size remains under control.



Here's the snippets of the DEBUG output:



-------------------------------------------------------------

DEBUG: setDebug: JavaMail version 1.4ea

DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]

DEBUG SMTP: useEhlo true, useAuth false

DEBUG SMTP: trying to connect to host "localhost", port 25, isSSL false

220 xxx.clusterspan.net ESMTP

DEBUG SMTP: connected to host "localhost", port: 25



EHLO xxx.clusterspan.net

250-xxx.clusterspan.net

250-STARTTLS

250-PIPELINING

250 8BITMIME

DEBUG SMTP: Found extension "STARTTLS", arg ""

DEBUG SMTP: Found extension "PIPELINING", arg ""

DEBUG SMTP: Found extension "8BITMIME", arg ""

DEBUG SMTP: use8bit false

MAIL FROM:

250 ok

RCPT TO:

250 ok

DEBUG SMTP: Verified Addresses

DEBUG SMTP: hotmail@hotmail.com

DATA

354 go ahead

Message-ID: <20435221.11140093638887.JavaMail.javamailuser@localhost>

Date: Thu, 16 Feb 2006 07:40:38 -0500 (GMT-05:00)

From: info@email.com

Subject: Happenings around Blue

MIME-Version: 1.0

Content-Type: text/html; charset=ISO-8859-1

Content-Transfer-Encoding: quoted-printable





...


   <<Less

Re: Suppress DEBUG SMTP in catalina.out

Posted By:   ankush_purwar  
Posted On:   Thursday, February 16, 2006 07:52 PM

Yes, you can increase the level of log to info.
But this can be done at many places at logger level or appender level.
About | Sitemap | Contact