Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

.

  • Loading branch information...
commit 2e627595184955290e8dc28c51b6b3f605a3bbe8 1 parent 157245d
Sumit Shah authored
View
2  src/main/java/com/episparq/remotemailfilter/RemoteFilter.java
@@ -102,7 +102,7 @@ private IMAPStore getRemoteStore() throws RemoteFilterException {
}
}
- public void processMessage(Message m) {
+ public synchronized void processMessage(Message m) {
try {
logger.info("From: " + m.getFrom()[0] + " Message: " + m.getSubject());
View
12 src/main/resources/log4j.properties
@@ -1,7 +1,13 @@
-log4j.rootCategory=INFO, LOGFILE
-#log4j.logger.org.codehaus.wadi=DEBUG, LOGFILE
+log4j.rootCategory=INFO,LOGFILE,CONSOLE
-log4j.appender.LOGFILE=org.apache.log4j.ConsoleAppender
+log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
+log4j.appender.CONSOLE.Threshold=WARN
+log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
+log4j.appender.CONSOLE.layout.ConversionPattern=%d [%t] %-5p %c - %m%n
+
+log4j.appender.LOGFILE=org.apache.log4j.FileAppender
+log4j.appender.LOGFILE.File=log4j.log
+log4j.appender.LOGFILE.Append=false
log4j.appender.LOGFILE.Threshold=TRACE
log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout
log4j.appender.LOGFILE.layout.ConversionPattern=%d [%t] %-5p %c - %m%n
Please sign in to comment.
Something went wrong with that request. Please try again.