一、使用两个以上spring环境变量做三目操作
<springProperty name="application_name" scope="context" source="spring.application.name"/><springProperty name="trace_app_name" scope="context" source="spring.zipkin.service.name" defaultValue="${application_name:-}" /><!-- 日志存放路径 -->
<property name="log.path" value="logs/ruoyi-gateway" /><!-- 日志输出格式 -->
<property name="log.pattern" value="%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level [${trace_app_name:-},%X{traceId:-},%X{spanId:-}] %logger{20} - [%method,%line] - %msg%n" />
<springProperty name="application_name" scope="context" source="spring.application.name222" defaultValue="app" /><springProperty name="trace_app_name" scope="context" source="spring.zipkin.service.name222" defaultValue="${application_name:-app}" /><!-- 日志存放路径 -->
<property name="log.path" value="logs/ruoyi-gateway" /><!-- 日志输出格式 -->
<property name="log.pattern" value="%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level [${trace_app_name:-2233},%X{traceId:-},%X{spanId:-}] %logger{20} - [%method,%line] - %msg%n" />