Permalink
Browse files

Convert valve logging to org.apache.juli.logging.

  • Loading branch information...
jcoleman committed Apr 16, 2012
1 parent 1025b73 commit 8170113bd5724a9a09f622b038b09c8b0a634ac8
Showing with 8 additions and 6 deletions.
  1. +8 −6 src/main/java/com/radiadesign/catalina/session/RedisSessionHandlerValve.java
@@ -7,11 +7,13 @@
import javax.servlet.ServletException;
import java.io.IOException;
-import java.util.logging.Logger;
+
+import org.apache.juli.logging.Log;
+import org.apache.juli.logging.LogFactory;
public class RedisSessionHandlerValve extends ValveBase {
- private static Logger log = Logger.getLogger("RedisSessionHandlerValve");
+ private final Log log = LogFactory.getLog(RedisSessionManager.class);
private RedisSessionManager manager;
public void setRedisSessionManager(RedisSessionManager manager) {
@@ -33,15 +35,15 @@ private void storeOrRemoveSession(Session session) {
try {
if (session != null) {
if (session.isValid()) {
- log.fine("Request with session completed, saving session " + session.getId());
+ log.trace("Request with session completed, saving session " + session.getId());
if (session.getSession() != null) {
- log.fine("HTTP Session present, saving " + session.getId());
+ log.trace("HTTP Session present, saving " + session.getId());
manager.save(session);
} else {
- log.fine("No HTTP Session present, Not saving " + session.getId());
+ log.trace("No HTTP Session present, Not saving " + session.getId());
}
} else {
- log.fine("HTTP Session has been invalidated, removing :" + session.getId());
+ log.trace("HTTP Session has been invalidated, removing :" + session.getId());
manager.remove(session);
}
}

0 comments on commit 8170113

Please sign in to comment.