From b3007e4ad79542143bbc80e892218c137b9933da Mon Sep 17 00:00:00 2001 From: "361243819@qq.com" <7215210> Date: Tue, 12 Oct 2021 14:39:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0nacos=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E5=BC=80=E5=85=B3,=E9=BB=98=E8=AE=A4=E5=85=B3=E9=97=AD,?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E6=89=93=E5=BC=80=E4=BC=9A=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E5=86=99=E5=A4=A7=E9=87=8F=E6=97=A0=E7=94=A8=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E6=8A=8A=E7=A1=AC=E7=9B=98=E5=8D=A0=E6=BB=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/alibaba/nacos/PigNacosApplication.java | 1 + .../main/java/com/alibaba/nacos/config/ConfigConstants.java | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/pig-register/src/main/java/com/alibaba/nacos/PigNacosApplication.java b/pig-register/src/main/java/com/alibaba/nacos/PigNacosApplication.java index c22741c0..74397f97 100755 --- a/pig-register/src/main/java/com/alibaba/nacos/PigNacosApplication.java +++ b/pig-register/src/main/java/com/alibaba/nacos/PigNacosApplication.java @@ -45,6 +45,7 @@ public class PigNacosApplication { System.setProperty(ConfigConstants.STANDALONE_MODE, "true"); System.setProperty(ConfigConstants.AUTH_ENABLED, "false"); System.setProperty(ConfigConstants.LOG_BASEDIR, "logs"); + System.setProperty(ConfigConstants.LOG_ENABLED, "false"); return true; } diff --git a/pig-register/src/main/java/com/alibaba/nacos/config/ConfigConstants.java b/pig-register/src/main/java/com/alibaba/nacos/config/ConfigConstants.java index c2d31e55..3b38bc7a 100755 --- a/pig-register/src/main/java/com/alibaba/nacos/config/ConfigConstants.java +++ b/pig-register/src/main/java/com/alibaba/nacos/config/ConfigConstants.java @@ -40,4 +40,10 @@ public interface ConfigConstants { */ String LOG_BASEDIR = "server.tomcat.basedir"; + + /** + * access_log日志开关 + */ + String LOG_ENABLED = "server.tomcat.accesslog.enabled"; + }