franta-hg@223: /** franta-hg@223: * SQL-DK franta-hg@223: * Copyright © 2015 František Kučera (frantovo.cz) franta-hg@223: * franta-hg@223: * This program is free software: you can redistribute it and/or modify franta-hg@223: * it under the terms of the GNU General Public License as published by franta-hg@250: * the Free Software Foundation, version 3 of the License. franta-hg@223: * franta-hg@223: * This program is distributed in the hope that it will be useful, franta-hg@223: * but WITHOUT ANY WARRANTY; without even the implied warranty of franta-hg@223: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the franta-hg@223: * GNU General Public License for more details. franta-hg@223: * franta-hg@223: * You should have received a copy of the GNU General Public License franta-hg@223: * along with this program. If not, see . franta-hg@223: */ franta-hg@223: package info.globalcode.sql.dk.logging; franta-hg@223: franta-hg@223: import java.util.logging.Logger; franta-hg@223: franta-hg@223: /** franta-hg@223: * franta-hg@223: * @author Ing. František Kučera (frantovo.cz) franta-hg@223: */ franta-hg@223: public class LoggerProducer { franta-hg@223: franta-hg@223: /** franta-hg@223: * @return created logger for the caller class franta-hg@223: */ franta-hg@223: public static Logger getLogger() { franta-hg@223: String className = Thread.currentThread().getStackTrace()[2].getClassName(); franta-hg@223: return Logger.getLogger(className); franta-hg@223: } franta-hg@223: franta-hg@223: }