]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.db.common/src/org/simantics/db/common/utils/Logger.java
Goodbye db-client.log
[simantics/platform.git] / bundles / org.simantics.db.common / src / org / simantics / db / common / utils / Logger.java
1 /*******************************************************************************
2  * Copyright (c) 2007, 2010, 2018 Association for Decentralized Information Management
3  * in Industry THTH ry.
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
8  *
9  * Contributors:
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;
14
15 import org.slf4j.LoggerFactory;
16
17 @Deprecated
18 public class Logger {
19
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]";
22
23     public static void defaultLogError(Throwable exception) {
24         LOGGER.error(TODO_REPLACE_RIGHT_LOGGER, exception);
25     }
26     public static void defaultLogError(String message) {
27         LOGGER.error("{} {}", TODO_REPLACE_RIGHT_LOGGER, message);
28     }
29     public static void defaultLogError(String message, Throwable exception) {
30         LOGGER.error("{} {}", TODO_REPLACE_RIGHT_LOGGER, message, exception);
31     }
32     public static void defaultLogInfo(String message) {
33         LOGGER.info("{} {}", TODO_REPLACE_RIGHT_LOGGER, message);
34     }
35 }