mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-08-18 20:38:02 +08:00
feat(all): Modify Project Package Name cn.hutool->org.dromara.hutool
BREAKING CHANGE: 包名变更 Closes https://gitee.com/dromara/hutool/issues/I6SC4B
This commit is contained in:
@@ -10,11 +10,11 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.log;
|
||||
package org.dromara.hutool.log;
|
||||
|
||||
import cn.hutool.core.exceptions.ExceptionUtil;
|
||||
import cn.hutool.core.text.StrUtil;
|
||||
import cn.hutool.log.level.Level;
|
||||
import org.dromara.hutool.core.exceptions.ExceptionUtil;
|
||||
import org.dromara.hutool.core.text.StrUtil;
|
||||
import org.dromara.hutool.log.level.Level;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@@ -10,7 +10,14 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.log;
|
||||
package org.dromara.hutool.log;
|
||||
|
||||
import org.dromara.hutool.log.dialect.commons.ApacheCommonsLogFactory;
|
||||
import org.dromara.hutool.log.dialect.console.ConsoleLogFactory;
|
||||
import org.dromara.hutool.log.dialect.jdk.JdkLogFactory;
|
||||
import org.dromara.hutool.log.dialect.log4j.Log4jLogFactory;
|
||||
import org.dromara.hutool.log.dialect.log4j2.Log4j2LogFactory;
|
||||
import org.dromara.hutool.log.dialect.slf4j.Slf4jLogFactory;
|
||||
|
||||
/**
|
||||
* 全局日志工厂类<br>
|
||||
@@ -42,12 +49,12 @@ public class GlobalLogFactory {
|
||||
/**
|
||||
* 自定义日志实现
|
||||
*
|
||||
* @see cn.hutool.log.dialect.slf4j.Slf4jLogFactory
|
||||
* @see cn.hutool.log.dialect.log4j.Log4jLogFactory
|
||||
* @see cn.hutool.log.dialect.log4j2.Log4j2LogFactory
|
||||
* @see cn.hutool.log.dialect.commons.ApacheCommonsLogFactory
|
||||
* @see cn.hutool.log.dialect.jdk.JdkLogFactory
|
||||
* @see cn.hutool.log.dialect.console.ConsoleLogFactory
|
||||
* @see Slf4jLogFactory
|
||||
* @see Log4jLogFactory
|
||||
* @see Log4j2LogFactory
|
||||
* @see ApacheCommonsLogFactory
|
||||
* @see JdkLogFactory
|
||||
* @see ConsoleLogFactory
|
||||
*
|
||||
* @param logFactoryClass 日志工厂类
|
||||
* @return 自定义的日志工厂类
|
||||
@@ -63,12 +70,12 @@ public class GlobalLogFactory {
|
||||
/**
|
||||
* 自定义日志实现
|
||||
*
|
||||
* @see cn.hutool.log.dialect.slf4j.Slf4jLogFactory
|
||||
* @see cn.hutool.log.dialect.log4j.Log4jLogFactory
|
||||
* @see cn.hutool.log.dialect.log4j2.Log4j2LogFactory
|
||||
* @see cn.hutool.log.dialect.commons.ApacheCommonsLogFactory
|
||||
* @see cn.hutool.log.dialect.jdk.JdkLogFactory
|
||||
* @see cn.hutool.log.dialect.console.ConsoleLogFactory
|
||||
* @see Slf4jLogFactory
|
||||
* @see Log4jLogFactory
|
||||
* @see Log4j2LogFactory
|
||||
* @see ApacheCommonsLogFactory
|
||||
* @see JdkLogFactory
|
||||
* @see ConsoleLogFactory
|
||||
*
|
||||
* @param logFactory 日志工厂类对象
|
||||
* @return 自定义的日志工厂类
|
||||
16
hutool-log/src/main/java/cn/hutool/log/Log.java → hutool-log/src/main/java/org/dromara/hutool/log/Log.java
Executable file → Normal file
16
hutool-log/src/main/java/cn/hutool/log/Log.java → hutool-log/src/main/java/org/dromara/hutool/log/Log.java
Executable file → Normal file
@@ -10,15 +10,15 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.log;
|
||||
package org.dromara.hutool.log;
|
||||
|
||||
import cn.hutool.core.lang.caller.CallerUtil;
|
||||
import cn.hutool.log.level.DebugLog;
|
||||
import cn.hutool.log.level.ErrorLog;
|
||||
import cn.hutool.log.level.InfoLog;
|
||||
import cn.hutool.log.level.Level;
|
||||
import cn.hutool.log.level.TraceLog;
|
||||
import cn.hutool.log.level.WarnLog;
|
||||
import org.dromara.hutool.core.lang.caller.CallerUtil;
|
||||
import org.dromara.hutool.log.level.DebugLog;
|
||||
import org.dromara.hutool.log.level.ErrorLog;
|
||||
import org.dromara.hutool.log.level.InfoLog;
|
||||
import org.dromara.hutool.log.level.Level;
|
||||
import org.dromara.hutool.log.level.TraceLog;
|
||||
import org.dromara.hutool.log.level.WarnLog;
|
||||
|
||||
/**
|
||||
* 日志统一接口
|
||||
@@ -10,14 +10,14 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.log;
|
||||
package org.dromara.hutool.log;
|
||||
|
||||
import cn.hutool.core.io.resource.ResourceUtil;
|
||||
import cn.hutool.core.lang.caller.CallerUtil;
|
||||
import cn.hutool.core.map.SafeConcurrentHashMap;
|
||||
import cn.hutool.core.util.ServiceLoaderUtil;
|
||||
import cn.hutool.log.dialect.console.ConsoleLogFactory;
|
||||
import cn.hutool.log.dialect.jdk.JdkLogFactory;
|
||||
import org.dromara.hutool.core.io.resource.ResourceUtil;
|
||||
import org.dromara.hutool.core.lang.caller.CallerUtil;
|
||||
import org.dromara.hutool.core.map.SafeConcurrentHashMap;
|
||||
import org.dromara.hutool.core.util.ServiceLoaderUtil;
|
||||
import org.dromara.hutool.log.dialect.console.ConsoleLogFactory;
|
||||
import org.dromara.hutool.log.dialect.jdk.JdkLogFactory;
|
||||
|
||||
import java.net.URL;
|
||||
import java.util.Map;
|
||||
8
hutool-log/src/main/java/cn/hutool/log/StaticLog.java → hutool-log/src/main/java/org/dromara/hutool/log/StaticLog.java
Executable file → Normal file
8
hutool-log/src/main/java/cn/hutool/log/StaticLog.java → hutool-log/src/main/java/org/dromara/hutool/log/StaticLog.java
Executable file → Normal file
@@ -10,11 +10,11 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.log;
|
||||
package org.dromara.hutool.log;
|
||||
|
||||
import cn.hutool.core.lang.caller.CallerUtil;
|
||||
import cn.hutool.core.text.StrUtil;
|
||||
import cn.hutool.log.level.Level;
|
||||
import org.dromara.hutool.core.lang.caller.CallerUtil;
|
||||
import org.dromara.hutool.core.text.StrUtil;
|
||||
import org.dromara.hutool.log.level.Level;
|
||||
|
||||
/**
|
||||
* 静态日志类,用于在不引入日志对象的情况下打印日志
|
||||
@@ -10,14 +10,14 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.log.dialect.commons;
|
||||
package org.dromara.hutool.log.dialect.commons;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
|
||||
import cn.hutool.core.text.StrUtil;
|
||||
import cn.hutool.log.AbstractLog;
|
||||
import cn.hutool.log.level.Level;
|
||||
import org.dromara.hutool.core.text.StrUtil;
|
||||
import org.dromara.hutool.log.AbstractLog;
|
||||
import org.dromara.hutool.log.level.Level;
|
||||
|
||||
/**
|
||||
* Apache Commons Logging
|
||||
@@ -10,12 +10,12 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.log.dialect.commons;
|
||||
package org.dromara.hutool.log.dialect.commons;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.impl.Log4JLogger;
|
||||
|
||||
import cn.hutool.log.dialect.log4j.Log4jLog;
|
||||
import org.dromara.hutool.log.dialect.log4j.Log4jLog;
|
||||
|
||||
/**
|
||||
* Apache Commons Logging for Log4j
|
||||
@@ -10,10 +10,10 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.log.dialect.commons;
|
||||
package org.dromara.hutool.log.dialect.commons;
|
||||
|
||||
import cn.hutool.log.Log;
|
||||
import cn.hutool.log.LogFactory;
|
||||
import org.dromara.hutool.log.Log;
|
||||
import org.dromara.hutool.log.LogFactory;
|
||||
|
||||
/**
|
||||
* Apache Commons Logging
|
||||
@@ -16,4 +16,4 @@
|
||||
* @author looly
|
||||
*
|
||||
*/
|
||||
package cn.hutool.log.dialect.commons;
|
||||
package org.dromara.hutool.log.dialect.commons;
|
||||
@@ -10,14 +10,14 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.log.dialect.console;
|
||||
package org.dromara.hutool.log.dialect.console;
|
||||
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import cn.hutool.core.lang.ansi.Ansi4BitColor;
|
||||
import cn.hutool.core.lang.ansi.AnsiEncoder;
|
||||
import cn.hutool.core.reflect.ClassUtil;
|
||||
import cn.hutool.core.text.StrUtil;
|
||||
import cn.hutool.log.level.Level;
|
||||
import org.dromara.hutool.core.date.DateUtil;
|
||||
import org.dromara.hutool.core.lang.ansi.Ansi4BitColor;
|
||||
import org.dromara.hutool.core.lang.ansi.AnsiEncoder;
|
||||
import org.dromara.hutool.core.reflect.ClassUtil;
|
||||
import org.dromara.hutool.core.text.StrUtil;
|
||||
import org.dromara.hutool.log.level.Level;
|
||||
|
||||
import java.util.function.Function;
|
||||
|
||||
@@ -10,10 +10,10 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.log.dialect.console;
|
||||
package org.dromara.hutool.log.dialect.console;
|
||||
|
||||
import cn.hutool.log.Log;
|
||||
import cn.hutool.log.LogFactory;
|
||||
import org.dromara.hutool.log.Log;
|
||||
import org.dromara.hutool.log.LogFactory;
|
||||
|
||||
/**
|
||||
* 利用System.out.println()打印彩色日志
|
||||
@@ -10,15 +10,15 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.log.dialect.console;
|
||||
package org.dromara.hutool.log.dialect.console;
|
||||
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import cn.hutool.core.lang.Assert;
|
||||
import cn.hutool.core.lang.Console;
|
||||
import cn.hutool.core.map.Dict;
|
||||
import cn.hutool.core.text.StrUtil;
|
||||
import cn.hutool.log.AbstractLog;
|
||||
import cn.hutool.log.level.Level;
|
||||
import org.dromara.hutool.core.date.DateUtil;
|
||||
import org.dromara.hutool.core.lang.Assert;
|
||||
import org.dromara.hutool.core.lang.Console;
|
||||
import org.dromara.hutool.core.map.Dict;
|
||||
import org.dromara.hutool.core.text.StrUtil;
|
||||
import org.dromara.hutool.log.AbstractLog;
|
||||
import org.dromara.hutool.log.level.Level;
|
||||
|
||||
/**
|
||||
* 利用System.out.println()打印日志
|
||||
@@ -10,10 +10,10 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.log.dialect.console;
|
||||
package org.dromara.hutool.log.dialect.console;
|
||||
|
||||
import cn.hutool.log.Log;
|
||||
import cn.hutool.log.LogFactory;
|
||||
import org.dromara.hutool.log.Log;
|
||||
import org.dromara.hutool.log.LogFactory;
|
||||
|
||||
/**
|
||||
* 利用System.out.println()打印日志
|
||||
@@ -16,4 +16,4 @@
|
||||
* @author looly
|
||||
*
|
||||
*/
|
||||
package cn.hutool.log.dialect.console;
|
||||
package org.dromara.hutool.log.dialect.console;
|
||||
@@ -10,13 +10,13 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.log.dialect.jboss;
|
||||
package org.dromara.hutool.log.dialect.jboss;
|
||||
|
||||
import org.jboss.logging.Logger;
|
||||
|
||||
import cn.hutool.core.text.StrUtil;
|
||||
import cn.hutool.log.AbstractLog;
|
||||
import cn.hutool.log.level.Level;
|
||||
import org.dromara.hutool.core.text.StrUtil;
|
||||
import org.dromara.hutool.log.AbstractLog;
|
||||
import org.dromara.hutool.log.level.Level;
|
||||
|
||||
/**
|
||||
* <a href="https://github.com/jboss-logging">Jboss-Logging</a> log.
|
||||
@@ -10,10 +10,10 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.log.dialect.jboss;
|
||||
package org.dromara.hutool.log.dialect.jboss;
|
||||
|
||||
import cn.hutool.log.Log;
|
||||
import cn.hutool.log.LogFactory;
|
||||
import org.dromara.hutool.log.Log;
|
||||
import org.dromara.hutool.log.LogFactory;
|
||||
|
||||
/**
|
||||
* <a href="https://github.com/jboss-logging">Jboss-Logging</a> log.
|
||||
@@ -16,4 +16,4 @@
|
||||
* @author looly
|
||||
*
|
||||
*/
|
||||
package cn.hutool.log.dialect.jboss;
|
||||
package org.dromara.hutool.log.dialect.jboss;
|
||||
@@ -10,14 +10,14 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.log.dialect.jdk;
|
||||
package org.dromara.hutool.log.dialect.jdk;
|
||||
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.LogRecord;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
import cn.hutool.core.text.StrUtil;
|
||||
import cn.hutool.log.AbstractLog;
|
||||
import org.dromara.hutool.core.text.StrUtil;
|
||||
import org.dromara.hutool.log.AbstractLog;
|
||||
|
||||
/**
|
||||
* <a href="http://java.sun.com/javase/6/docs/technotes/guides/logging/index.html">java.util.logging</a> log.
|
||||
@@ -105,7 +105,7 @@ public class JdkLog extends AbstractLog {
|
||||
|
||||
// ------------------------------------------------------------------------- Log
|
||||
@Override
|
||||
public void log(final String fqcn, final cn.hutool.log.level.Level level, final Throwable t, final String format, final Object... arguments) {
|
||||
public void log(final String fqcn, final org.dromara.hutool.log.level.Level level, final Throwable t, final String format, final Object... arguments) {
|
||||
final Level jdkLevel;
|
||||
switch (level) {
|
||||
case TRACE:
|
||||
@@ -10,16 +10,16 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.log.dialect.jdk;
|
||||
package org.dromara.hutool.log.dialect.jdk;
|
||||
|
||||
import java.io.InputStream;
|
||||
import java.util.logging.LogManager;
|
||||
|
||||
import cn.hutool.core.io.IoUtil;
|
||||
import cn.hutool.core.io.resource.ResourceUtil;
|
||||
import cn.hutool.core.lang.Console;
|
||||
import cn.hutool.log.Log;
|
||||
import cn.hutool.log.LogFactory;
|
||||
import org.dromara.hutool.core.io.IoUtil;
|
||||
import org.dromara.hutool.core.io.resource.ResourceUtil;
|
||||
import org.dromara.hutool.core.lang.Console;
|
||||
import org.dromara.hutool.log.Log;
|
||||
import org.dromara.hutool.log.LogFactory;
|
||||
|
||||
/**
|
||||
* JDK日志工厂类
|
||||
@@ -16,4 +16,4 @@
|
||||
* @author looly
|
||||
*
|
||||
*/
|
||||
package cn.hutool.log.dialect.jdk;
|
||||
package org.dromara.hutool.log.dialect.jdk;
|
||||
@@ -10,13 +10,13 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.log.dialect.log4j;
|
||||
package org.dromara.hutool.log.dialect.log4j;
|
||||
|
||||
import org.apache.log4j.Level;
|
||||
import org.apache.log4j.Logger;
|
||||
|
||||
import cn.hutool.core.text.StrUtil;
|
||||
import cn.hutool.log.AbstractLog;
|
||||
import org.dromara.hutool.core.text.StrUtil;
|
||||
import org.dromara.hutool.log.AbstractLog;
|
||||
|
||||
/**
|
||||
* <a href="http://logging.apache.org/log4j/1.2/index.html">Apache Log4J</a> log.<br>
|
||||
@@ -55,7 +55,7 @@ public class Log4jLog extends AbstractLog {
|
||||
|
||||
@Override
|
||||
public void trace(final String fqcn, final Throwable t, final String format, final Object... arguments) {
|
||||
log(fqcn, cn.hutool.log.level.Level.TRACE, t, format, arguments);
|
||||
log(fqcn, org.dromara.hutool.log.level.Level.TRACE, t, format, arguments);
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------- Debug
|
||||
@@ -66,7 +66,7 @@ public class Log4jLog extends AbstractLog {
|
||||
|
||||
@Override
|
||||
public void debug(final String fqcn, final Throwable t, final String format, final Object... arguments) {
|
||||
log(fqcn, cn.hutool.log.level.Level.DEBUG, t, format, arguments);
|
||||
log(fqcn, org.dromara.hutool.log.level.Level.DEBUG, t, format, arguments);
|
||||
}
|
||||
// ------------------------------------------------------------------------- Info
|
||||
@Override
|
||||
@@ -76,7 +76,7 @@ public class Log4jLog extends AbstractLog {
|
||||
|
||||
@Override
|
||||
public void info(final String fqcn, final Throwable t, final String format, final Object... arguments) {
|
||||
log(fqcn, cn.hutool.log.level.Level.INFO, t, format, arguments);
|
||||
log(fqcn, org.dromara.hutool.log.level.Level.INFO, t, format, arguments);
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------- Warn
|
||||
@@ -87,7 +87,7 @@ public class Log4jLog extends AbstractLog {
|
||||
|
||||
@Override
|
||||
public void warn(final String fqcn, final Throwable t, final String format, final Object... arguments) {
|
||||
log(fqcn, cn.hutool.log.level.Level.WARN, t, format, arguments);
|
||||
log(fqcn, org.dromara.hutool.log.level.Level.WARN, t, format, arguments);
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------- Error
|
||||
@@ -98,12 +98,12 @@ public class Log4jLog extends AbstractLog {
|
||||
|
||||
@Override
|
||||
public void error(final String fqcn, final Throwable t, final String format, final Object... arguments) {
|
||||
log(fqcn, cn.hutool.log.level.Level.ERROR, t, format, arguments);
|
||||
log(fqcn, org.dromara.hutool.log.level.Level.ERROR, t, format, arguments);
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------- Log
|
||||
@Override
|
||||
public void log(final String fqcn, final cn.hutool.log.level.Level level, final Throwable t, final String format, final Object... arguments) {
|
||||
public void log(final String fqcn, final org.dromara.hutool.log.level.Level level, final Throwable t, final String format, final Object... arguments) {
|
||||
final Level log4jLevel;
|
||||
switch (level) {
|
||||
case TRACE:
|
||||
@@ -10,10 +10,10 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.log.dialect.log4j;
|
||||
package org.dromara.hutool.log.dialect.log4j;
|
||||
|
||||
import cn.hutool.log.Log;
|
||||
import cn.hutool.log.LogFactory;
|
||||
import org.dromara.hutool.log.Log;
|
||||
import org.dromara.hutool.log.LogFactory;
|
||||
|
||||
/**
|
||||
* <a href="http://logging.apache.org/log4j/1.2/index.html">Apache Log4J</a> log.<br>
|
||||
@@ -16,4 +16,4 @@
|
||||
* @author looly
|
||||
*
|
||||
*/
|
||||
package cn.hutool.log.dialect.log4j;
|
||||
package org.dromara.hutool.log.dialect.log4j;
|
||||
@@ -10,15 +10,15 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.log.dialect.log4j2;
|
||||
package org.dromara.hutool.log.dialect.log4j2;
|
||||
|
||||
import org.apache.logging.log4j.Level;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.logging.log4j.spi.AbstractLogger;
|
||||
|
||||
import cn.hutool.core.text.StrUtil;
|
||||
import cn.hutool.log.AbstractLog;
|
||||
import org.dromara.hutool.core.text.StrUtil;
|
||||
import org.dromara.hutool.log.AbstractLog;
|
||||
|
||||
/**
|
||||
* <a href="http://logging.apache.org/log4j/2.x/index.html">Apache Log4J 2</a> log.<br>
|
||||
@@ -106,7 +106,7 @@ public class Log4j2Log extends AbstractLog {
|
||||
|
||||
// ------------------------------------------------------------------------- Log
|
||||
@Override
|
||||
public void log(final String fqcn, final cn.hutool.log.level.Level level, final Throwable t, final String format, final Object... arguments) {
|
||||
public void log(final String fqcn, final org.dromara.hutool.log.level.Level level, final Throwable t, final String format, final Object... arguments) {
|
||||
final Level log4j2Level;
|
||||
switch (level) {
|
||||
case TRACE:
|
||||
@@ -10,10 +10,10 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.log.dialect.log4j2;
|
||||
package org.dromara.hutool.log.dialect.log4j2;
|
||||
|
||||
import cn.hutool.log.Log;
|
||||
import cn.hutool.log.LogFactory;
|
||||
import org.dromara.hutool.log.Log;
|
||||
import org.dromara.hutool.log.LogFactory;
|
||||
|
||||
/**
|
||||
* <a href="http://logging.apache.org/log4j/2.x/index.html">Apache Log4J 2</a> log.<br>
|
||||
@@ -16,4 +16,4 @@
|
||||
* @author looly
|
||||
*
|
||||
*/
|
||||
package cn.hutool.log.dialect.log4j2;
|
||||
package org.dromara.hutool.log.dialect.log4j2;
|
||||
@@ -10,12 +10,12 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.log.dialect.logtube;
|
||||
package org.dromara.hutool.log.dialect.logtube;
|
||||
|
||||
import cn.hutool.core.exceptions.ExceptionUtil;
|
||||
import cn.hutool.core.text.StrUtil;
|
||||
import cn.hutool.log.AbstractLog;
|
||||
import cn.hutool.log.level.Level;
|
||||
import org.dromara.hutool.core.exceptions.ExceptionUtil;
|
||||
import org.dromara.hutool.core.text.StrUtil;
|
||||
import org.dromara.hutool.log.AbstractLog;
|
||||
import org.dromara.hutool.log.level.Level;
|
||||
import io.github.logtube.Logtube;
|
||||
import io.github.logtube.core.IEventLogger;
|
||||
|
||||
@@ -10,10 +10,10 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.log.dialect.logtube;
|
||||
package org.dromara.hutool.log.dialect.logtube;
|
||||
|
||||
import cn.hutool.log.Log;
|
||||
import cn.hutool.log.LogFactory;
|
||||
import org.dromara.hutool.log.Log;
|
||||
import org.dromara.hutool.log.LogFactory;
|
||||
|
||||
/**
|
||||
* <a href="https://github.com/logtube/logtube-java">LogTube</a> log. 封装<br>
|
||||
@@ -16,4 +16,4 @@
|
||||
* @author looly
|
||||
*
|
||||
*/
|
||||
package cn.hutool.log.dialect.logtube;
|
||||
package org.dromara.hutool.log.dialect.logtube;
|
||||
@@ -16,4 +16,4 @@
|
||||
* @author looly
|
||||
*
|
||||
*/
|
||||
package cn.hutool.log.dialect;
|
||||
package org.dromara.hutool.log.dialect;
|
||||
@@ -10,15 +10,15 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.log.dialect.slf4j;
|
||||
package org.dromara.hutool.log.dialect.slf4j;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.slf4j.spi.LocationAwareLogger;
|
||||
|
||||
import cn.hutool.core.text.StrUtil;
|
||||
import cn.hutool.log.AbstractLog;
|
||||
import cn.hutool.log.level.Level;
|
||||
import org.dromara.hutool.core.text.StrUtil;
|
||||
import org.dromara.hutool.log.AbstractLog;
|
||||
import org.dromara.hutool.log.level.Level;
|
||||
|
||||
/**
|
||||
* <a href="http://www.slf4j.org/">SLF4J</a> log.<br>
|
||||
@@ -10,7 +10,7 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.log.dialect.slf4j;
|
||||
package org.dromara.hutool.log.dialect.slf4j;
|
||||
|
||||
import java.io.OutputStream;
|
||||
import java.io.PrintStream;
|
||||
@@ -19,8 +19,8 @@ import java.io.UnsupportedEncodingException;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.slf4j.helpers.NOPLoggerFactory;
|
||||
|
||||
import cn.hutool.log.Log;
|
||||
import cn.hutool.log.LogFactory;
|
||||
import org.dromara.hutool.log.Log;
|
||||
import org.dromara.hutool.log.LogFactory;
|
||||
|
||||
/**
|
||||
* <a href="http://www.slf4j.org/">SLF4J</a> log.<br>
|
||||
@@ -16,4 +16,4 @@
|
||||
* @author looly
|
||||
*
|
||||
*/
|
||||
package cn.hutool.log.dialect.slf4j;
|
||||
package org.dromara.hutool.log.dialect.slf4j;
|
||||
@@ -10,15 +10,15 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.log.dialect.tinylog;
|
||||
package org.dromara.hutool.log.dialect.tinylog;
|
||||
|
||||
import org.dromara.hutool.log.AbstractLog;
|
||||
import org.pmw.tinylog.Level;
|
||||
import org.pmw.tinylog.LogEntryForwarder;
|
||||
import org.pmw.tinylog.Logger;
|
||||
|
||||
import cn.hutool.core.array.ArrayUtil;
|
||||
import cn.hutool.core.text.StrUtil;
|
||||
import cn.hutool.log.AbstractLog;
|
||||
import org.dromara.hutool.core.array.ArrayUtil;
|
||||
import org.dromara.hutool.core.text.StrUtil;
|
||||
|
||||
/**
|
||||
* <a href="http://www.tinylog.org/">tinylog</a> log.<br>
|
||||
@@ -118,12 +118,12 @@ public class TinyLog extends AbstractLog {
|
||||
|
||||
// ------------------------------------------------------------------------- Log
|
||||
@Override
|
||||
public void log(final String fqcn, final cn.hutool.log.level.Level level, final Throwable t, final String format, final Object... arguments) {
|
||||
public void log(final String fqcn, final org.dromara.hutool.log.level.Level level, final Throwable t, final String format, final Object... arguments) {
|
||||
logIfEnabled(fqcn, toTinyLevel(level), t, format, arguments);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEnabled(final cn.hutool.log.level.Level level) {
|
||||
public boolean isEnabled(final org.dromara.hutool.log.level.Level level) {
|
||||
return this.level <= toTinyLevel(level).ordinal();
|
||||
}
|
||||
|
||||
@@ -151,7 +151,7 @@ public class TinyLog extends AbstractLog {
|
||||
* @return Tinylog的Level
|
||||
* @since 4.0.3
|
||||
*/
|
||||
private Level toTinyLevel(final cn.hutool.log.level.Level level) {
|
||||
private Level toTinyLevel(final org.dromara.hutool.log.level.Level level) {
|
||||
final Level tinyLevel;
|
||||
switch (level) {
|
||||
case TRACE:
|
||||
@@ -10,11 +10,11 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.log.dialect.tinylog;
|
||||
package org.dromara.hutool.log.dialect.tinylog;
|
||||
|
||||
import cn.hutool.core.array.ArrayUtil;
|
||||
import cn.hutool.core.text.StrUtil;
|
||||
import cn.hutool.log.AbstractLog;
|
||||
import org.dromara.hutool.core.array.ArrayUtil;
|
||||
import org.dromara.hutool.core.text.StrUtil;
|
||||
import org.dromara.hutool.log.AbstractLog;
|
||||
import org.tinylog.Level;
|
||||
import org.tinylog.configuration.Configuration;
|
||||
import org.tinylog.format.AdvancedMessageFormatter;
|
||||
@@ -126,12 +126,12 @@ public class TinyLog2 extends AbstractLog {
|
||||
|
||||
// ------------------------------------------------------------------------- Log
|
||||
@Override
|
||||
public void log(final String fqcn, final cn.hutool.log.level.Level level, final Throwable t, final String format, final Object... arguments) {
|
||||
public void log(final String fqcn, final org.dromara.hutool.log.level.Level level, final Throwable t, final String format, final Object... arguments) {
|
||||
logIfEnabled(fqcn, toTinyLevel(level), t, format, arguments);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEnabled(final cn.hutool.log.level.Level level) {
|
||||
public boolean isEnabled(final org.dromara.hutool.log.level.Level level) {
|
||||
return this.level <= toTinyLevel(level).ordinal();
|
||||
}
|
||||
|
||||
@@ -160,7 +160,7 @@ public class TinyLog2 extends AbstractLog {
|
||||
* @return Tinylog的Level
|
||||
* @since 4.0.3
|
||||
*/
|
||||
private Level toTinyLevel(final cn.hutool.log.level.Level level) {
|
||||
private Level toTinyLevel(final org.dromara.hutool.log.level.Level level) {
|
||||
final Level tinyLevel;
|
||||
switch (level) {
|
||||
case TRACE:
|
||||
@@ -10,10 +10,10 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.log.dialect.tinylog;
|
||||
package org.dromara.hutool.log.dialect.tinylog;
|
||||
|
||||
import cn.hutool.log.Log;
|
||||
import cn.hutool.log.LogFactory;
|
||||
import org.dromara.hutool.log.Log;
|
||||
import org.dromara.hutool.log.LogFactory;
|
||||
|
||||
/**
|
||||
* <a href="http://www.tinylog.org/">TinyLog2</a> log.<br>
|
||||
@@ -10,10 +10,10 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.log.dialect.tinylog;
|
||||
package org.dromara.hutool.log.dialect.tinylog;
|
||||
|
||||
import cn.hutool.log.Log;
|
||||
import cn.hutool.log.LogFactory;
|
||||
import org.dromara.hutool.log.Log;
|
||||
import org.dromara.hutool.log.LogFactory;
|
||||
|
||||
/**
|
||||
* <a href="http://www.tinylog.org/">TinyLog</a> log.<br>
|
||||
@@ -16,4 +16,4 @@
|
||||
*
|
||||
* @author looly
|
||||
*/
|
||||
package cn.hutool.log.dialect.tinylog;
|
||||
package org.dromara.hutool.log.dialect.tinylog;
|
||||
@@ -10,7 +10,7 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.log.level;
|
||||
package org.dromara.hutool.log.level;
|
||||
|
||||
/**
|
||||
* DEBUG级别日志接口
|
||||
@@ -10,7 +10,7 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.log.level;
|
||||
package org.dromara.hutool.log.level;
|
||||
|
||||
/**
|
||||
* ERROR级别日志接口
|
||||
@@ -10,7 +10,7 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.log.level;
|
||||
package org.dromara.hutool.log.level;
|
||||
|
||||
/**
|
||||
* INFO级别日志接口
|
||||
@@ -10,7 +10,7 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.log.level;
|
||||
package org.dromara.hutool.log.level;
|
||||
|
||||
/**
|
||||
* 日志等级
|
||||
@@ -10,7 +10,7 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.log.level;
|
||||
package org.dromara.hutool.log.level;
|
||||
|
||||
/**
|
||||
* TRACE级别日志接口
|
||||
@@ -10,7 +10,7 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.log.level;
|
||||
package org.dromara.hutool.log.level;
|
||||
|
||||
/**
|
||||
* WARN级别日志接口
|
||||
@@ -16,4 +16,4 @@
|
||||
* @author looly
|
||||
*
|
||||
*/
|
||||
package cn.hutool.log.level;
|
||||
package org.dromara.hutool.log.level;
|
||||
@@ -17,4 +17,4 @@
|
||||
* @author looly
|
||||
*
|
||||
*/
|
||||
package cn.hutool.log;
|
||||
package org.dromara.hutool.log;
|
||||
@@ -10,11 +10,11 @@
|
||||
# See the Mulan PSL v2 for more details.
|
||||
#
|
||||
|
||||
cn.hutool.log.dialect.logtube.LogTubeLogFactory
|
||||
cn.hutool.log.dialect.slf4j.Slf4jLogFactory
|
||||
cn.hutool.log.dialect.log4j2.Log4j2LogFactory
|
||||
cn.hutool.log.dialect.log4j.Log4jLogFactory
|
||||
cn.hutool.log.dialect.commons.ApacheCommonsLogFactory
|
||||
cn.hutool.log.dialect.tinylog.TinyLog2Factory
|
||||
cn.hutool.log.dialect.tinylog.TinyLogFactory
|
||||
cn.hutool.log.dialect.jboss.JbossLogFactory
|
||||
org.dromara.hutool.log.dialect.logtube.LogTubeLogFactory
|
||||
org.dromara.hutool.log.dialect.slf4j.Slf4jLogFactory
|
||||
org.dromara.hutool.log.dialect.log4j2.Log4j2LogFactory
|
||||
org.dromara.hutool.log.dialect.log4j.Log4jLogFactory
|
||||
org.dromara.hutool.log.dialect.commons.ApacheCommonsLogFactory
|
||||
org.dromara.hutool.log.dialect.tinylog.TinyLog2Factory
|
||||
org.dromara.hutool.log.dialect.tinylog.TinyLogFactory
|
||||
org.dromara.hutool.log.dialect.jboss.JbossLogFactory
|
||||
Reference in New Issue
Block a user