统计治理下游填报系统 目前只有养老机构
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <configuration>
  3. <property name="LOG_PATH" value="/logs"/>
  4. <property name="LOG_FILE" value="${LOG_PATH}/smt.log"/>
  5. <property name="LOG_FILE_ERROR" value="${LOG_PATH}/smt_error.log"/>
  6. <property name="FILE_LOG_CHARSET" value="UTF-8"/>
  7. <property name="LOGBACK_ROLLINGPOLICY_FILE_NAME_PATTERN" value="${LOG_PATH}/smt.%d{yyyy-MM-dd}.%i.log.zip"/>
  8. <property name="LOGBACK_ROLLINGPOLICY_MAX_FILE_SIZE" value="1GB"/>
  9. <property name="LOGBACK_ROLLINGPOLICY_TOTAL_SIZE_CAP" value="50GB"/>
  10. <property name="LOGBACK_ROLLINGPOLICY_MAX_HISTORY" value="30"/>
  11. <!--springboot基础配置-->
  12. <include resource="org/springframework/boot/logging/logback/defaults.xml" />
  13. <include resource="org/springframework/boot/logging/logback/console-appender.xml" />
  14. <include resource="org/springframework/boot/logging/logback/file-appender.xml" />
  15. <!--错误日志-->
  16. <appender name="FILE-ERROR" class="ch.qos.logback.core.rolling.RollingFileAppender">
  17. <encoder>
  18. <pattern>${FILE_LOG_PATTERN}</pattern>
  19. <charset>${FILE_LOG_CHARSET}</charset>
  20. </encoder>
  21. <file>${LOG_FILE_ERROR}</file>
  22. <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
  23. <fileNamePattern>${LOG_PATH}/smt.%d{yyyy-MM-dd}.%i.error.log.zip</fileNamePattern>
  24. <cleanHistoryOnStart>${LOGBACK_ROLLINGPOLICY_CLEAN_HISTORY_ON_START:-false}</cleanHistoryOnStart>
  25. <maxFileSize>${LOGBACK_ROLLINGPOLICY_MAX_FILE_SIZE:-1GB}</maxFileSize>
  26. <totalSizeCap>${LOGBACK_ROLLINGPOLICY_TOTAL_SIZE_CAP:-50GB}</totalSizeCap>
  27. <maxHistory>${LOGBACK_ROLLINGPOLICY_MAX_HISTORY:-30}</maxHistory>
  28. </rollingPolicy>
  29. <!-- 只打印ERROR日志 -->
  30. <filter class="ch.qos.logback.classic.filter.LevelFilter">
  31. <level>ERROR</level>
  32. <onMatch>ACCEPT</onMatch>
  33. <onMismatch>DENY</onMismatch>
  34. </filter>
  35. </appender>
  36. <!--远程日志-->
  37. <appender name="SOCKET" class="cc.smtweb.framework.core.log.appender.SmtSocketAppender">
  38. <remoteHost>localhost</remoteHost>
  39. <port>21022</port>
  40. <reconnectionDelay>10000</reconnectionDelay>
  41. </appender>
  42. <!--数据库日志-->
  43. <!--ch.qos.logback.classic.db.DBAppender-->
  44. <appender name="DB" class="cc.smtweb.framework.core.log.appender.SmtDBAppender">
  45. <connectionSource class="ch.qos.logback.core.db.DriverManagerConnectionSource">
  46. <driverClass>com.mysql.cj.jdbc.Driver</driverClass>
  47. <url>jdbc:mysql://192.168.110.210:4418/lrjx?useUnicode=true&amp;characterEncoding=utf-8&amp;allowMultiQueries=true&amp;useSSL=false</url>
  48. <user>root</user>
  49. <password>Ncmz@2022_jjkj</password>
  50. <!-- <url>jdbc:mysql://127.0.0.1:4408/lrjx?useUnicode=true&amp;characterEncoding=utf-8&amp;allowMultiQueries=true&amp;useSSL=false</url>-->
  51. <!-- <user>root</user>-->
  52. <!-- <password>Jujia_@)@!0427</password>-->
  53. </connectionSource>
  54. <filter class="cc.smtweb.framework.core.log.filter.DBFilter"/>
  55. </appender>
  56. <!--显示JDBC日志-->
  57. <logger name="org.springframework.jdbc.core" additivity="false" level="DEBUG" >
  58. <appender-ref ref="CONSOLE" />
  59. </logger>
  60. <root level="INFO">
  61. <appender-ref ref="CONSOLE" />
  62. <appender-ref ref="FILE" />
  63. <appender-ref ref="FILE-ERROR" />
  64. <appender-ref ref="SOCKET" />
  65. <appender-ref ref="DB" />
  66. </root>
  67. </configuration>