protected void log(LogType type, String message) { if (type.equals(LogType.INFO)) { log.info(message); } else if (type.equals(LogType.ERROR)) { log.info(message); } else { log.warn(message); } }
protected void log(LogType type, Action action) { try { String message = JSONConverter.toJSON(action); if (type.equals(LogType.INFO)) { log.info(message); } else if (type.equals(LogType.ERROR)) { log.info(message); } else { log.warn(message); } } catch (IOException e) { log.error(e.getMessage()); } }