diff --git a/src/org/dclermonte/siba/cli/SibaCLI.java b/src/org/dclermonte/siba/cli/SibaCLI.java index 49e30be..70cd072 100644 --- a/src/org/dclermonte/siba/cli/SibaCLI.java +++ b/src/org/dclermonte/siba/cli/SibaCLI.java @@ -23,9 +23,10 @@ import java.io.File; import java.util.ResourceBundle; import org.apache.commons.lang3.StringUtils; -import org.dclermonte.siba.Siba; import org.dclermonte.siba.SibaException; import org.dclermonte.siba.model.SibaManager; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; /** * This class CLI is for use from Command Line Interface. @@ -35,6 +36,7 @@ import org.dclermonte.siba.model.SibaManager; public class SibaCLI { + public static final Logger logger = LoggerFactory.getLogger(SibaCLI.class); private static final ResourceBundle BUNDLE = ResourceBundle.getBundle("org.dclermonte.siba.cli.messages"); //$NON-NLS-1$ public static void backup(final File directoryToSave) throws SibaException @@ -185,7 +187,7 @@ public class SibaCLI sibaException.printStackTrace(); if (!(sibaException.getCause() == null)) { - Siba.logger.info("SibaException chainée = " + sibaException.getCause().getMessage()); + logger.info("SibaException chainée = " + sibaException.getCause().getMessage()); } help(); }