
com.star.log.Log Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of utils Show documentation
Show all versions of utils Show documentation
some utility class for java develop
The newest version!
package com.star.log;
import com.star.log.level.DebugLog;
import com.star.log.level.ErrorLog;
import com.star.log.level.InfoLog;
import com.star.log.level.Level;
import com.star.log.level.TraceLog;
import com.star.log.level.WarnLog;
/**
* 日志统一接口
*
* @author Looly
*/
public interface Log extends TraceLog, DebugLog, InfoLog, WarnLog, ErrorLog {
/**
* @return 日志对象的Name
*/
String getName();
/**
* 是否开启指定日志
*
* @param level 日志级别
* @return 是否开启指定级别
*/
boolean isEnabled(Level level);
/**
* 打印指定级别的日志
*
* @param level 级别
* @param format 消息模板
* @param arguments 参数
*/
void log(Level level, String format, Object... arguments);
/**
* 打印 指定级别的日志
*
* @param level 级别
* @param t 错误对象
* @param format 消息模板
* @param arguments 参数
*/
void log(Level level, Throwable t, String format, Object... arguments);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy