
ff.prac.logging.SrcLog Maven / Gradle / Ivy
/*
* Copyright (C) 2015-2018 XinZhenfeng
*
* This file is part of prac
*
* prac is free software: you can use, redistribute, and/or modify
* it under the terms of the GNU Affero General Public License, version 3
* or later ("AGPL"), as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see .
*/
package ff.prac.logging;
/**
* a static wrapper for {@link ff.prac.logging.SourceLog}
* @author XZF
*
*/
public class SrcLog {
private static SourceLog ls = new SourceLog();
/**
* get default SourceLog instance
* @return default SourceLog instance
*/
public static SourceLog getSourceLog() {
return ls;
}
public static void trace(String msg) {
ls.trace(msg);
}
public static void error(String msg) {
ls.error(msg);
}
public static void error(Throwable e) {
ls.error(e);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy