/******************************************************************************* * Copyright (c) 2007, 2010, 2018 Association for Decentralized Information Management * in Industry THTH ry. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * VTT Technical Research Centre of Finland - initial API and implementation * Semantum Oy - Deprecating and replace with SLF4J Logger *******************************************************************************/ package org.simantics.db.common.utils; import org.slf4j.LoggerFactory; @Deprecated public class Logger { private static final org.slf4j.Logger LOGGER = LoggerFactory.getLogger(Logger.class); private static final String TODO_REPLACE_RIGHT_LOGGER = "[TODO: Replace with right logger instance]"; public static void defaultLogError(Throwable exception) { LOGGER.error(TODO_REPLACE_RIGHT_LOGGER, exception); } public static void defaultLogError(String message) { LOGGER.error("{} {}", TODO_REPLACE_RIGHT_LOGGER, message); } public static void defaultLogError(String message, Throwable exception) { LOGGER.error("{} {}", TODO_REPLACE_RIGHT_LOGGER, message, exception); } public static void defaultLogInfo(String message) { LOGGER.info("{} {}", TODO_REPLACE_RIGHT_LOGGER, message); } }