Skip to content
Snippets Groups Projects
Commit 4e62970f authored by Katy Saintin's avatar Katy Saintin
Browse files

CEA Branch : Use Logging from java.util instead of slf4j

parent 9ffe2d21
Branches
Tags
No related merge requests found
...@@ -13,15 +13,14 @@ import java.io.UnsupportedEncodingException; ...@@ -13,15 +13,14 @@ import java.io.UnsupportedEncodingException;
import java.net.URL; import java.net.URL;
import java.net.URLDecoder; import java.net.URLDecoder;
import java.security.CodeSource; import java.security.CodeSource;
import java.util.logging.Logger;
import javax.swing.SwingUtilities; import javax.swing.SwingUtilities;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class ApplicationUtil { public class ApplicationUtil {
private static final Logger LOGGER = LoggerFactory.getLogger(ApplicationUtil.class); private static final Logger LOGGER = Logger.getLogger(ApplicationUtil.class.getName());
public static String getFileJarName(final Class<?> clazz) { public static String getFileJarName(final Class<?> clazz) {
String jarFileName = getCompleteFileJarName(clazz); String jarFileName = getCompleteFileJarName(clazz);
...@@ -50,8 +49,7 @@ public class ApplicationUtil { ...@@ -50,8 +49,7 @@ public class ApplicationUtil {
completeJarFilename = name; completeJarFilename = name;
} }
} catch (UnsupportedEncodingException e) { } catch (UnsupportedEncodingException e) {
LOGGER.error("Impossible to read jar file from class {} because {}", clazz, e.getMessage()); LOGGER.severe("Impossible to read jar file from class " + clazz +" because "+ e.getMessage());
LOGGER.debug("Stack trace", e);
} }
} }
return completeJarFilename; return completeJarFilename;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment