mirror of
https://gitee.com/log4j/pig.git
synced 2025-01-03 23:42:22 +08:00
添加nacos日志开关,默认关闭,日志打开会导致写大量无用日志把硬盘占满
This commit is contained in:
parent
385f03dbea
commit
b3007e4ad7
@ -45,6 +45,7 @@ public class PigNacosApplication {
|
|||||||
System.setProperty(ConfigConstants.STANDALONE_MODE, "true");
|
System.setProperty(ConfigConstants.STANDALONE_MODE, "true");
|
||||||
System.setProperty(ConfigConstants.AUTH_ENABLED, "false");
|
System.setProperty(ConfigConstants.AUTH_ENABLED, "false");
|
||||||
System.setProperty(ConfigConstants.LOG_BASEDIR, "logs");
|
System.setProperty(ConfigConstants.LOG_BASEDIR, "logs");
|
||||||
|
System.setProperty(ConfigConstants.LOG_ENABLED, "false");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -40,4 +40,10 @@ public interface ConfigConstants {
|
|||||||
*/
|
*/
|
||||||
String LOG_BASEDIR = "server.tomcat.basedir";
|
String LOG_BASEDIR = "server.tomcat.basedir";
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* access_log日志开关
|
||||||
|
*/
|
||||||
|
String LOG_ENABLED = "server.tomcat.accesslog.enabled";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user