| CODENOTIFIER | HelpYou are not signed inSign in |
Project: PUNKsearch
Revision: 542
Author: ysoldak
Date: 25 Aug 2008 14:34:03
Changes:get rid of java.util.logging
Files:| ... | ...@@ -19,9 +19,10 @@ | |
| 19 | 19 | import java.util.Collections; |
| 20 | 20 | import java.util.Date; |
| 21 | 21 | import java.util.List; |
| 22 | import java.util.logging.Logger; | |
| 23 | 22 | |
| 24 | 23 | import org.apache.commons.io.FileUtils; |
| 24 | import org.apache.commons.logging.Log; | |
| 25 | import org.apache.commons.logging.LogFactory; | |
| 25 | 26 | import org.punksearch.ip.Ip; |
| 26 | 27 | |
| 27 | 28 | /** |
| ... | ...@@ -33,7 +34,7 @@ | |
| 33 | 34 | * |
| 34 | 35 | */ |
| 35 | 36 | public class HostStats implements Comparable<HostStats> { |
| 36 | private static Logger __log = Logger.getLogger(HostStats.class.getName()); | |
| 37 | private static Log __log = LogFactory.getLog(HostStats.class); | |
| 37 | 38 | |
| 38 | 39 | public static final String DUMP_PREFIX = "hosts-"; |
| 39 | 40 | public static final String DUMP_SUFFIX = ".csv"; |
| ... | ...@@ -159,7 +160,7 @@ | |
| 159 | 160 | try { |
| 160 | 161 | FileUtils.writeLines(new File(outFilePath), result); |
| 161 | 162 | } catch (IOException e) { |
| 162 | __log.warning("Can't dump host stats into file (check permissions and free space): " + outFilePath); | |
| 163 | __log.warn("Can't dump host stats into file (check permissions and free space): " + outFilePath); | |
| 163 | 164 | } |
| 164 | 165 | } |
| 165 | 166 | } |
| ... | ...@@ -187,7 +188,7 @@ | |
| 187 | 188 | result.add(hs); |
| 188 | 189 | } |
| 189 | 190 | } catch (IOException e) { |
| 190 | __log.warning("Can't read host stats from file (check permissions): " + hostsFilePath); | |
| 191 | __log.warn("Can't read host stats from file (check permissions): " + hostsFilePath); | |
| 191 | 192 | } |
| 192 | 193 | return result; |
| 193 | 194 | } |
| ... | ...@@ -208,7 +209,7 @@ | |
| 208 | 209 | |
| 209 | 210 | File dir = new File(dirPath); |
| 210 | 211 | if (!dir.exists() && !dir.mkdir()) { |
| 211 | __log.warning("Can't make directory (check permissions and free space): " + dirPath); | |
| 212 | __log.warn("Can't make directory (check permissions and free space): " + dirPath); | |
| 212 | 213 | return; |
| 213 | 214 | } |
| 214 | 215 | |
| ... | ...@@ -218,7 +219,7 @@ | |
| 218 | 219 | try { |
| 219 | 220 | FileUtils.writeLines(dumpFile, hostStats); |
| 220 | 221 | } catch (IOException e) { |
| 221 | __log.warning("Can't dump host stats into (check permissions and free space): " + dirPath + File.separator + fileName); | |
| 222 | __log.warn("Can't dump host stats into (check permissions and free space): " + dirPath + File.separator + fileName); | |
| 222 | 223 | } |
| 223 | 224 | } |
| 224 | 225 |
| ... | ...@@ -8,7 +8,7 @@ | |
| 8 | 8 | <classpathentry exported="true" kind="lib" path="lib/jcifs-1.2.18.jar"/> |
| 9 | 9 | <classpathentry kind="lib" path="lib/commons-net-1.4.1.jar" sourcepath="/Distr/Development/commons/commons-net-1.4.1-src/src/java"/> |
| 10 | 10 | <classpathentry kind="lib" path="lib/jakarta-oro-2.0.8.jar"/> |
| 11 | <classpathentry kind="lib" path="lib/commons-logging-1.1.1.jar"/> | |
| 11 | <classpathentry exported="true" kind="lib" path="lib/commons-logging-1.1.1.jar"/> | |
| 12 | 12 | <classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/3.8.1"/> |
| 13 | 13 | <classpathentry kind="output" path="eclipse-build"/> |
| 14 | 14 | </classpath> |
| ... | ...@@ -14,7 +14,6 @@ | |
| 14 | 14 | import java.io.IOException; |
| 15 | 15 | import java.util.List; |
| 16 | 16 | import java.util.Set; |
| 17 | import java.util.logging.Level; | |
| 18 | 17 | |
| 19 | 18 | import org.apache.commons.io.FileUtils; |
| 20 | 19 | import org.apache.commons.logging.Log; |