From d27a0a67ff6c6af894d7cf96473a3eac2f216924 Mon Sep 17 00:00:00 2001 From: orbiter Date: Tue, 17 May 2011 15:53:59 +0000 Subject: [PATCH] fix in log initialization according to hint from Dominic git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7728 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/net/yacy/kelondro/logging/Log.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/net/yacy/kelondro/logging/Log.java b/source/net/yacy/kelondro/logging/Log.java index fb8f9c425..1584bff5d 100644 --- a/source/net/yacy/kelondro/logging/Log.java +++ b/source/net/yacy/kelondro/logging/Log.java @@ -363,9 +363,9 @@ public final class Log { // creating the logging directory String logPattern = logManager.getProperty("java.util.logging.FileHandler.pattern"); - int stripPos = logPattern.lastIndexOf('/'); + int stripPos = logPattern.lastIndexOf(File.separatorChar); if (!new File(logPattern).isAbsolute()) logPattern = new File(dataPath, logPattern).getAbsolutePath(); - if (stripPos < 0) stripPos = logPattern.lastIndexOf(File.pathSeparatorChar); + if (stripPos < 0) stripPos = logPattern.lastIndexOf(File.separatorChar); File log = new File(logPattern.substring(0, stripPos)); if (!log.isAbsolute()) log = new File(dataPath, log.getPath()); if (!log.canRead()) log.mkdir();