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"; + }