From 57d27aa0e4442ab7ac45ab96ec8edd9bc84570b9 Mon Sep 17 00:00:00 2001 From: smallchill Date: Thu, 3 Jan 2019 10:03:56 +0800 Subject: [PATCH] =?UTF-8?q?:zap:=20=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../org/springblade/core/log/logger/BladeLogger.java | 10 +++++----- .../{BladeLogPublisher.java => UsualLogPublisher.java} | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) rename blade-core-log/src/main/java/org/springblade/core/log/publisher/{BladeLogPublisher.java => UsualLogPublisher.java} (97%) diff --git a/blade-core-log/src/main/java/org/springblade/core/log/logger/BladeLogger.java b/blade-core-log/src/main/java/org/springblade/core/log/logger/BladeLogger.java index bd5ba41..3fab15f 100644 --- a/blade-core-log/src/main/java/org/springblade/core/log/logger/BladeLogger.java +++ b/blade-core-log/src/main/java/org/springblade/core/log/logger/BladeLogger.java @@ -16,7 +16,7 @@ package org.springblade.core.log.logger; import lombok.extern.slf4j.Slf4j; -import org.springblade.core.log.publisher.BladeLogPublisher; +import org.springblade.core.log.publisher.UsualLogPublisher; import org.springframework.beans.factory.InitializingBean; import org.springframework.beans.factory.annotation.Value; @@ -32,19 +32,19 @@ public class BladeLogger implements InitializingBean { private String serviceId; public void info(String id, String data) { - BladeLogPublisher.publishEvent("info", id, data); + UsualLogPublisher.publishEvent("info", id, data); } public void debug(String id, String data) { - BladeLogPublisher.publishEvent("debug", id, data); + UsualLogPublisher.publishEvent("debug", id, data); } public void warn(String id, String data) { - BladeLogPublisher.publishEvent("warn", id, data); + UsualLogPublisher.publishEvent("warn", id, data); } public void error(String id, String data) { - BladeLogPublisher.publishEvent("error", id, data); + UsualLogPublisher.publishEvent("error", id, data); } @Override diff --git a/blade-core-log/src/main/java/org/springblade/core/log/publisher/BladeLogPublisher.java b/blade-core-log/src/main/java/org/springblade/core/log/publisher/UsualLogPublisher.java similarity index 97% rename from blade-core-log/src/main/java/org/springblade/core/log/publisher/BladeLogPublisher.java rename to blade-core-log/src/main/java/org/springblade/core/log/publisher/UsualLogPublisher.java index 59823ea..ba6a693 100644 --- a/blade-core-log/src/main/java/org/springblade/core/log/publisher/BladeLogPublisher.java +++ b/blade-core-log/src/main/java/org/springblade/core/log/publisher/UsualLogPublisher.java @@ -31,7 +31,7 @@ import java.util.Map; * * @author Chill */ -public class BladeLogPublisher { +public class UsualLogPublisher { public static void publishEvent(String level, String id, String data) { HttpServletRequest request = WebUtil.getRequest();