1 /*******************************************************************************
2 * Copyright (c) 2007, 2010, 2018 Association for Decentralized Information Management
4 * All rights reserved. This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License v1.0
6 * which accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
10 * VTT Technical Research Centre of Finland - initial API and implementation
11 * Semantum Oy - Deprecating and replace with SLF4J Logger
12 *******************************************************************************/
13 package org.simantics.db.common.utils;
15 import org.slf4j.LoggerFactory;
20 private static final org.slf4j.Logger LOGGER = LoggerFactory.getLogger(Logger.class);
21 private static final String TODO_REPLACE_RIGHT_LOGGER = "[TODO: Replace with right logger instance]";
23 public static void defaultLogError(Throwable exception) {
24 LOGGER.error(TODO_REPLACE_RIGHT_LOGGER, exception);
26 public static void defaultLogError(String message) {
27 LOGGER.error("{} {}", TODO_REPLACE_RIGHT_LOGGER, message);
29 public static void defaultLogError(String message, Throwable exception) {
30 LOGGER.error("{} {}", TODO_REPLACE_RIGHT_LOGGER, message, exception);
32 public static void defaultLogInfo(String message) {
33 LOGGER.info("{} {}", TODO_REPLACE_RIGHT_LOGGER, message);