Hi,<div><br></div><div>I'm trying to setup logback for a fairly simple appender configuration.. </div><div><br></div><div>DEBUG, INFO, WARN: System.out Console Appender, File Appender</div><div>ERROR: System.err Console Appender, File Appender, SMTPAppender configured for GMail.</div>
<div><br></div><div>Following instructions to setup GMail appender, I have the following:</div><div><br></div><div>Appender config:</div><div><div><br></div><div> <!-- Email appender --></div><div> <appender name="MailAppender" class="ch.qos.logback.classic.net.SMTPAppender"></div>
<div> <smtpHost><a href="http://smtp.gmail.com">smtp.gmail.com</a></smtpHost></div><div> <smtpPort>465</smtpPort></div><div> <ssl>true</ssl></div><div> <username>MyUsername</username></div>
<div> <password>MyPassword</password></div><div><br></div><div> <to><a href="mailto:greg@klout.com">greg@klout.com</a></to></div><div> <!--<to>ANOTHER_EMAIL_DESTINATION</to> <!– additional destinations are possible –>--></div>
<div> <from><a href="mailto:noreply@gmail.com">noreply@gmail.com</a></from></div><div> <subject>LOGGED ERROR: %logger{20} - %m</subject></div><div> <layout class="ch.qos.logback.classic.PatternLayout"></div>
<div> <pattern>%date %-5level %logger{35} - %message%n%xEx{35}</pattern></div><div> </layout></div><div> </appender></div></div><div><br></div><div>Appender inclusion:</div><div>
<br></div><div><div> <root level="ERROR"></div><div> <appender-ref ref="StdErrAppender" /></div><div> <appender-ref ref="FileAppender" /></div><div> <appender-ref ref="MailAppender" /></div>
<div> </root></div></div><div><br></div><div>All appropriate maven dependencies:</div><div><br></div><div>logger jars</div><div><br></div><div><div> <slf4j.version>1.6.4</slf4j.version></div></div>
<div><br></div><div><div> <dependency></div><div> <groupId>org.slf4j</groupId></div><div> <artifactId>slf4j-api</artifactId></div><div> <version>${slf4j.version}</version></div>
<div> </dependency></div><div> <dependency></div><div> <groupId>ch.qos.logback</groupId></div><div> <artifactId>logback-access</artifactId></div><div>
<version>1.0.0</version></div><div> </dependency></div><div> <dependency></div><div> <groupId>ch.qos.logback</groupId></div><div> <artifactId>logback-classic</artifactId></div>
<div> <version>1.0.0</version></div><div> </dependency></div><div> <dependency></div><div> <groupId>ch.qos.logback</groupId></div><div> <artifactId>logback-core</artifactId></div>
<div> <version>1.0.0</version></div><div> </dependency></div></div><div><br></div><div><br></div><div><div>java mail</div><div> <dependency></div><div> <groupId>javax.mail</groupId></div>
<div> <artifactId>mail</artifactId></div><div> <version>1.4.4</version></div><div> </dependency></div></div><div><br></div><div><br></div><div>All the other appenders work just fine as configured. I see that the SMTPAppender is being loaded w/o error (at least nothing I see reported) .. yet on ERROR nothing gets sent. Username & password are all correct. I've confirmed with our operations that we don't have any special spam filters set up.</div>
<div><br></div><div>Thoughts on what could be wrong / what I need to check?</div><div><br></div><div>Thanks</div><div>-greg</div>