提交 6cc5d487 编写于 作者: L lbw 提交者: Gitee

!167 添加nacos日志开关,默认关闭,日志打开会导致写大量无用日志把硬盘占满

Merge pull request !167 from dante/dev
......@@ -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;
}
......
......@@ -40,4 +40,10 @@ public interface ConfigConstants {
*/
String LOG_BASEDIR = "server.tomcat.basedir";
/**
* access_log日志开关
*/
String LOG_ENABLED = "server.tomcat.accesslog.enabled";
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册