| CODENOTIFIER | HelpYou are not signed inSign in |
Project: PUNKsearch
Revision: 543
Author: ysoldak
Date: 25 Aug 2008 14:34:55
Changes:get rid of java.util.logging
Files:| ... | ...@@ -5,7 +5,9 @@ | |
| 5 | 5 | <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/> |
| 6 | 6 | <classpathentry combineaccessrules="false" kind="src" path="/core"/> |
| 7 | 7 | <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> |
| 8 | <classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/3"/> | |
| 9 | 8 | <classpathentry kind="lib" path="lib/servlet-api.jar"/> |
| 9 | <classpathentry kind="lib" path="WebContent/WEB-INF/lib/jcommon-1.0.12.jar"/> | |
| 10 | <classpathentry kind="lib" path="WebContent/WEB-INF/lib/jfreechart-1.0.9.jar"/> | |
| 11 | <classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/3.8.1"/> | |
| 10 | 12 | <classpathentry kind="output" path="eclipse-build"/> |
| 11 | 13 | </classpath> |
| ... | ...@@ -19,8 +19,9 @@ | |
| 19 | 19 | import java.util.List; |
| 20 | 20 | import java.util.Map; |
| 21 | 21 | import java.util.Set; |
| 22 | import java.util.logging.Logger; | |
| 23 | 22 | |
| 23 | import org.apache.commons.logging.Log; | |
| 24 | import org.apache.commons.logging.LogFactory; | |
| 24 | 25 | import org.apache.lucene.document.Document; |
| 25 | 26 | import org.apache.lucene.search.Filter; |
| 26 | 27 | import org.apache.lucene.search.Query; |
| ... | ...@@ -40,7 +41,7 @@ | |
| 40 | 41 | |
| 41 | 42 | private static final int MAX_DOCS = 10000; |
| 42 | 43 | |
| 43 | private static Logger __log = Logger.getLogger(SearchParams.class.getName()); | |
| 44 | private static Log __log = LogFactory.getLog(SearchParams.class); | |
| 44 | 45 | |
| 45 | 46 | private SearchParams params; |
| 46 | 47 | // private SearcherConfig config = SearcherConfig.getInstance(); |
| ... | ...@@ -1,7 +1,6 @@ | |
| 1 | 1 | package org.punksearch.web; |
| 2 | 2 | |
| 3 | 3 | import java.io.IOException; |
| 4 | import java.util.logging.Logger; | |
| 5 | 4 | |
| 6 | 5 | import javax.servlet.Filter; |
| 7 | 6 | import javax.servlet.FilterChain; |
| ... | ...@@ -13,9 +12,12 @@ | |
| 13 | 12 | import javax.servlet.http.HttpServletResponse; |
| 14 | 13 | import javax.servlet.http.HttpSession; |
| 15 | 14 | |
| 15 | import org.apache.commons.logging.Log; | |
| 16 | import org.apache.commons.logging.LogFactory; | |
| 17 | ||
| 16 | 18 | public class AuthFilter implements Filter |
| 17 | 19 | { |
| 18 | private static Logger __log = Logger.getLogger(AuthFilter.class.getName()); | |
| 20 | private static Log __log = LogFactory.getLog(AuthFilter.class); | |
| 19 | 21 | |
| 20 | 22 | private FilterConfig filterConfig = null; |
| 21 | 23 | |
| ... | ...@@ -65,11 +67,11 @@ | |
| 65 | 67 | } |
| 66 | 68 | catch (ServletException sx) |
| 67 | 69 | { |
| 68 | __log.warning(sx.getMessage()); | |
| 70 | __log.warn(sx.getMessage()); | |
| 69 | 71 | } |
| 70 | 72 | catch (IOException iox) |
| 71 | 73 | { |
| 72 | __log.warning(iox.getMessage()); | |
| 74 | __log.warn(iox.getMessage()); | |
| 73 | 75 | } |
| 74 | 76 | } |
| 75 | 77 |
| ... | ...@@ -14,15 +14,17 @@ | |
| 14 | 14 | import java.text.DateFormat; |
| 15 | 15 | import java.text.ParseException; |
| 16 | 16 | import java.text.SimpleDateFormat; |
| 17 | import java.util.logging.Logger; | |
| 18 | 17 | |
| 19 | 18 | import javax.servlet.http.HttpServletRequest; |
| 20 | 19 | |
| 20 | import org.apache.commons.logging.Log; | |
| 21 | import org.apache.commons.logging.LogFactory; | |
| 22 | ||
| 21 | 23 | /** |
| 22 | 24 | * @author Yury Soldak (ysoldak@gmail.com) |
| 23 | 25 | */ |
| 24 | 26 | public class SearchParams { |
| 25 | private static Logger __log = Logger.getLogger(SearchParams.class.getName()); | |
| 27 | private static Log __log = LogFactory.getLog(SearchParams.class); | |
| 26 | 28 | |
| 27 | 29 | private static final String DATE_FORMAT = "yyyy-MM-dd"; |
| 28 | 30 | |
| ... | ...@@ -96,7 +98,7 @@ | |
| 96 | 98 | try { |
| 97 | 99 | paramValue = new String(paramValue.getBytes("ISO-8859-1"), "UTF-8"); |
| 98 | 100 | } catch (UnsupportedEncodingException uee) { |
| 99 | __log.warning(uee.getMessage()); | |
| 101 | __log.warn(uee.getMessage()); | |
| 100 | 102 | } |
| 101 | 103 | |
| 102 | 104 | return paramValue; |