1 package org.openecomp.core.tools.util;
3 import org.openecomp.sdc.logging.api.Logger;
6 * Copyright © 2016-2017 European Support Limited.
8 * @since April 24, 2017
9 * Since it is a command line tools writing to console will be helpful to users.
12 public static void printMessage(Logger logger, String message) {
14 * Since it is a command line tools writing to console will be helpful to users.
16 System.out.println(message);
17 logger.debug(message);
21 public static void logError(Logger logger, Throwable ex) {
23 * Since it is a command line tools writing to console will be helpful to users.
26 logger.error(ex.getMessage(),ex);
29 public static void logError(Logger logger, String message, Throwable ex) {
31 * Since it is a command line tools writing to console will be helpful to users.
33 System.out.println(message);
35 logger.error(message,ex);