Browse Source

内容审核日志和端口修改

feature/syp_points
songyunpeng 5 years ago
parent
commit
c6dc631b34
  1. 6
      esua-epdc/epdc-module/epdc-content-security/epdc-content-security-server/pom.xml
  2. 39
      esua-epdc/epdc-module/epdc-content-security/epdc-content-security-server/src/main/resources/logback-spring.xml

6
esua-epdc/epdc-module/epdc-content-security/epdc-content-security-server/pom.xml

@ -137,7 +137,7 @@
<properties>
<spring.profiles.active>dev</spring.profiles.active>
<server.port>9071</server.port>
<server.port>9079</server.port>
<spring.redis.index>2</spring.redis.index>
<spring.redis.host>114.215.125.123</spring.redis.host>
@ -218,7 +218,7 @@
<properties>
<spring.profiles.active>prod</spring.profiles.active>
<server.port>9071</server.port>
<server.port>9079</server.port>
<!-- redis配置 -->
<spring.redis.index>0</spring.redis.index>
@ -237,7 +237,7 @@
<!-- nacos -->
<nacos.register-enabled>true</nacos.register-enabled>
<nacos.server-addr>172.16.0.7:10000,172.16.0.7:10001</nacos.server-addr>
<nacos.ip>172.16.0.8</nacos.ip>
<nacos.ip>172.16.0.7</nacos.ip>
<nacos.namespace></nacos.namespace>
<spring.datasource.druid.url>

39
esua-epdc/epdc-module/epdc-content-security/epdc-content-security-server/src/main/resources/logback-spring.xml

@ -19,7 +19,6 @@
<!-- 设置字符集 -->
<charset>UTF-8</charset>
</encoder>
</appender>
<!--2. 输出到文档-->
@ -128,34 +127,16 @@
<onMismatch>DENY</onMismatch>
</filter>
</appender>
<!-- 开发、测试环境 -->
<springProfile name="dev,test">
<logger name="org.springframework.web" level="INFO"/>
<logger name="org.springboot.sample" level="INFO"/>
<logger name="com.elink.esua.epdc" level="INFO"/>
<logger name="com.elink.esua.epdc.modules.*.dao" level="DEBUG"/>
<!--<logger name="com.elink.esua.epdc.modules.issue.dao" level="DEBUG"/>-->
<root level="INFO">
<appender-ref ref="DEBUG_FILE"/>
<appender-ref ref="INFO_FILE"/>
<appender-ref ref="WARN_FILE"/>
<appender-ref ref="ERROR_FILE"/>
</root>
</springProfile>
<!-- 生产环境 -->
<springProfile name="prod">
<logger name="org.springframework.web" level="ERROR"/>
<logger name="org.springboot.sample" level="ERROR"/>
<logger name="com.elink.esua.epdc" level="ERROR"/>
<root level="ERROR">
<appender-ref ref="CONSOLE"/>
<appender-ref ref="DEBUG_FILE"/>
<appender-ref ref="INFO_FILE"/>
<appender-ref ref="WARN_FILE"/>
<appender-ref ref="ERROR_FILE"/>
</root>
</springProfile>
<logger name="org.springframework.web" level="INFO"/>
<logger name="org.springboot.sample" level="INFO"/>
<logger name="com.elink.esua.epdc" level="INFO"/>
<root level="INFO">
<appender-ref ref="CONSOLE"/>
<appender-ref ref="DEBUG_FILE"/>
<appender-ref ref="INFO_FILE"/>
<appender-ref ref="WARN_FILE"/>
<appender-ref ref="ERROR_FILE"/>
</root>
</configuration>

Loading…
Cancel
Save