正在显示
4 个修改的文件
包含
212 行增加
和
98 行删除
1 | spring: | 1 | spring: |
2 | redis: | 2 | redis: |
3 | - host: localhost | 3 | + host: 192.168.1.53 |
4 | port: 6379 | 4 | port: 6379 |
5 | timeout: 60000 | 5 | timeout: 60000 |
6 | application: | 6 | application: |
7 | - name: gateway-server | 7 | + name: gateway-server-v11 |
8 | + profiles: | ||
9 | + active: dev | ||
8 | main: | 10 | main: |
9 | allow-bean-definition-overriding: true | 11 | allow-bean-definition-overriding: true |
10 | cloud: # spring cloud gateway 路由配置方式 | 12 | cloud: # spring cloud gateway 路由配置方式 |
@@ -14,6 +16,9 @@ spring: | @@ -14,6 +16,9 @@ spring: | ||
14 | lower-case-service-id: true #其中微服务应用名默认大写访问,设置此属性可小写访问。 | 16 | lower-case-service-id: true #其中微服务应用名默认大写访问,设置此属性可小写访问。 |
15 | enabled: true #gateway生成默认的routes,true生成,false,不生成 | 17 | enabled: true #gateway生成默认的routes,true生成,false,不生成 |
16 | routes: | 18 | routes: |
19 | + http: | ||
20 | + encoding: | ||
21 | + enabled: true | ||
17 | # - id: ORDER-SERVICE #网关路由到订单服务order-service | 22 | # - id: ORDER-SERVICE #网关路由到订单服务order-service |
18 | # uri: lb://ORDER-SERVICE #//后必须跟注册中心服务名称,表示跳转服务 | 23 | # uri: lb://ORDER-SERVICE #//后必须跟注册中心服务名称,表示跳转服务 |
19 | # predicates: | 24 | # predicates: |
@@ -40,8 +45,8 @@ server: | @@ -40,8 +45,8 @@ server: | ||
40 | eureka: | 45 | eureka: |
41 | client: | 46 | client: |
42 | service-url: | 47 | service-url: |
43 | -# defaultZone: http://192.168.1.53:12345/eureka/ | ||
44 | - defaultZone: http://localhost:12345/eureka/ | 48 | + defaultZone: http://192.168.1.53:12345/eureka/ |
49 | +# defaultZone: http://10.5.10.78:12345/eureka/ | ||
45 | healthcheck: | 50 | healthcheck: |
46 | enabled: true | 51 | enabled: true |
47 | # instance: | 52 | # instance: |
@@ -55,7 +60,7 @@ eureka: | @@ -55,7 +60,7 @@ eureka: | ||
55 | 60 | ||
56 | #日志配置 | 61 | #日志配置 |
57 | logging: | 62 | logging: |
58 | - config: classpath:logback-spring.xml | 63 | + config: config/logback-dev.xml |
59 | logback: | 64 | logback: |
60 | appname: gateway-service | 65 | appname: gateway-service |
61 | logdir: ./log | 66 | logdir: ./log |
@@ -68,4 +73,4 @@ management: | @@ -68,4 +73,4 @@ management: | ||
68 | endpoint: | 73 | endpoint: |
69 | health: | 74 | health: |
70 | show-details: always | 75 | show-details: always |
71 | - | 76 | +debug: false |
config/logback-dev.xml
0 → 100644
1 | +<?xml version="1.0" encoding="UTF-8"?> | ||
2 | +<!--参考文档链接:https://blog.csdn.net/qq_34912478/article/details/80877132--> | ||
3 | +<!-- 日志级别从低到高分为TRACE < DEBUG < INFO < WARN < ERROR < FATAL,如果设置为WARN,则低于WARN的信息都不会输出 --> | ||
4 | +<!-- scan:当此属性设置为true时,配置文件如果发生改变,将会被重新加载,默认值为true --> | ||
5 | +<!-- scanPeriod:设置监测配置文件是否有修改的时间间隔,如果没有给出时间单位,默认单位是毫秒。当scan为true时,此属性生效。默认的时间间隔为1分钟。 --> | ||
6 | +<!-- debug:当此属性设置为true时,将打印出logback内部日志信息,实时查看logback运行状态。默认值为false。 --> | ||
7 | +<configuration scan="true" scanPeriod="10 seconds"> | ||
8 | + | ||
9 | + <!--<include resource="org/springframework/boot/logging/logback/base.xml" />--> | ||
10 | + | ||
11 | + <contextName>logback</contextName> | ||
12 | + <!-- name的值是变量的名称,value的值时变量定义的值。通过定义的值会被插入到logger上下文中。定义变量后,可以使“${}”来使用变量。 --> | ||
13 | + <property name="log.path" value="./logs" /> | ||
14 | + | ||
15 | + <!-- 彩色日志 --> | ||
16 | + <!-- 彩色日志依赖的渲染类 --> | ||
17 | + <conversionRule conversionWord="clr" converterClass="org.springframework.boot.logging.logback.ColorConverter" /> | ||
18 | + <conversionRule conversionWord="wex" converterClass="org.springframework.boot.logging.logback.WhitespaceThrowableProxyConverter" /> | ||
19 | + <conversionRule conversionWord="wEx" converterClass="org.springframework.boot.logging.logback.ExtendedWhitespaceThrowableProxyConverter" /> | ||
20 | + <!-- 彩色日志格式 --> | ||
21 | + <property name="CONSOLE_LOG_PATTERN" value="${CONSOLE_LOG_PATTERN:-%clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(${LOG_LEVEL_PATTERN:-%5p}) %clr(${PID:- }){magenta} %clr(---){faint} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx}}"/> | ||
22 | + | ||
23 | + | ||
24 | + <!--输出到控制台--> | ||
25 | + <appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender"> | ||
26 | + <!--此日志appender是为开发使用,只配置最底级别,控制台输出的日志级别是大于或等于此级别的日志信息--> | ||
27 | + <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> | ||
28 | + <level>INFO</level> | ||
29 | + </filter> | ||
30 | + <encoder> | ||
31 | + <Pattern>${CONSOLE_LOG_PATTERN}</Pattern> | ||
32 | + <!-- 设置字符集 --> | ||
33 | + <charset>UTF-8</charset> | ||
34 | + </encoder> | ||
35 | + </appender> | ||
36 | + | ||
37 | + | ||
38 | + <!--输出到文件--> | ||
39 | + | ||
40 | + <!-- 时间滚动输出 level为 DEBUG 日志 --> | ||
41 | + <appender name="DEBUG_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> | ||
42 | + <!-- 正在记录的日志文件的路径及文件名 --> | ||
43 | + <file>${log.path}/log_debug.log</file> | ||
44 | + <!--日志文件输出格式--> | ||
45 | + <encoder> | ||
46 | + <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n</pattern> | ||
47 | + <charset>UTF-8</charset> <!-- 设置字符集 --> | ||
48 | + </encoder> | ||
49 | + <!-- 日志记录器的滚动策略,按日期,按大小记录 --> | ||
50 | + <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> | ||
51 | + <!-- 日志归档 --> | ||
52 | + <fileNamePattern>${log.path}/debug/log-debug-%d{yyyy-MM-dd}.%i.log</fileNamePattern> | ||
53 | + <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"> | ||
54 | + <maxFileSize>100MB</maxFileSize> | ||
55 | + </timeBasedFileNamingAndTriggeringPolicy> | ||
56 | + <!--日志文件保留天数--> | ||
57 | + <maxHistory>15</maxHistory> | ||
58 | + </rollingPolicy> | ||
59 | + <!-- 此日志文件只记录debug级别的 --> | ||
60 | + <filter class="ch.qos.logback.classic.filter.LevelFilter"> | ||
61 | + <level>debug</level> | ||
62 | + <onMatch>ACCEPT</onMatch> | ||
63 | + <onMismatch>DENY</onMismatch> | ||
64 | + </filter> | ||
65 | + </appender> | ||
66 | + | ||
67 | + <!-- 时间滚动输出 level为 INFO 日志 --> | ||
68 | + <appender name="INFO_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> | ||
69 | + <!-- 正在记录的日志文件的路径及文件名 --> | ||
70 | + <file>${log.path}/log_info.log</file> | ||
71 | + <!--日志文件输出格式--> | ||
72 | + <encoder> | ||
73 | + <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n</pattern> | ||
74 | + <charset>UTF-8</charset> | ||
75 | + </encoder> | ||
76 | + <!-- 日志记录器的滚动策略,按日期,按大小记录 --> | ||
77 | + <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> | ||
78 | + <!-- 每天日志归档路径以及格式 --> | ||
79 | + <fileNamePattern>${log.path}/info/log-info-%d{yyyy-MM-dd}.%i.log</fileNamePattern> | ||
80 | + <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"> | ||
81 | + <maxFileSize>100MB</maxFileSize> | ||
82 | + </timeBasedFileNamingAndTriggeringPolicy> | ||
83 | + <!--日志文件保留天数--> | ||
84 | + <maxHistory>15</maxHistory> | ||
85 | + </rollingPolicy> | ||
86 | + <!-- 此日志文件只记录info级别的 --> | ||
87 | + <filter class="ch.qos.logback.classic.filter.LevelFilter"> | ||
88 | + <level>info</level> | ||
89 | + <onMatch>ACCEPT</onMatch> | ||
90 | + <onMismatch>DENY</onMismatch> | ||
91 | + </filter> | ||
92 | + </appender> | ||
93 | + | ||
94 | + <!-- 时间滚动输出 level为 WARN 日志 --> | ||
95 | + <appender name="WARN_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> | ||
96 | + <!-- 正在记录的日志文件的路径及文件名 --> | ||
97 | + <file>${log.path}/log_warn.log</file> | ||
98 | + <!--日志文件输出格式--> | ||
99 | + <encoder> | ||
100 | + <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n</pattern> | ||
101 | + <charset>UTF-8</charset> <!-- 此处设置字符集 --> | ||
102 | + </encoder> | ||
103 | + <!-- 日志记录器的滚动策略,按日期,按大小记录 --> | ||
104 | + <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> | ||
105 | + <fileNamePattern>${log.path}/warn/log-warn-%d{yyyy-MM-dd}.%i.log</fileNamePattern> | ||
106 | + <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"> | ||
107 | + <maxFileSize>100MB</maxFileSize> | ||
108 | + </timeBasedFileNamingAndTriggeringPolicy> | ||
109 | + <!--日志文件保留天数--> | ||
110 | + <maxHistory>15</maxHistory> | ||
111 | + </rollingPolicy> | ||
112 | + <!-- 此日志文件只记录warn级别的 --> | ||
113 | + <filter class="ch.qos.logback.classic.filter.LevelFilter"> | ||
114 | + <level>warn</level> | ||
115 | + <onMatch>ACCEPT</onMatch> | ||
116 | + <onMismatch>DENY</onMismatch> | ||
117 | + </filter> | ||
118 | + </appender> | ||
119 | + | ||
120 | + | ||
121 | + <!-- 时间滚动输出 level为 ERROR 日志 --> | ||
122 | + <appender name="ERROR_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> | ||
123 | + <!-- 正在记录的日志文件的路径及文件名 --> | ||
124 | + <file>${log.path}/log_error.log</file> | ||
125 | + <!--日志文件输出格式--> | ||
126 | + <encoder> | ||
127 | + <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n</pattern> | ||
128 | + <charset>UTF-8</charset> <!-- 此处设置字符集 --> | ||
129 | + </encoder> | ||
130 | + <!-- 日志记录器的滚动策略,按日期,按大小记录 --> | ||
131 | + <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> | ||
132 | + <fileNamePattern>${log.path}/error/log-error-%d{yyyy-MM-dd}.%i.log</fileNamePattern> | ||
133 | + <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"> | ||
134 | + <maxFileSize>100MB</maxFileSize> | ||
135 | + </timeBasedFileNamingAndTriggeringPolicy> | ||
136 | + <!--日志文件保留天数--> | ||
137 | + <maxHistory>15</maxHistory> | ||
138 | + </rollingPolicy> | ||
139 | + <!-- 此日志文件只记录ERROR级别的 --> | ||
140 | + <filter class="ch.qos.logback.classic.filter.LevelFilter"> | ||
141 | + <level>ERROR</level> | ||
142 | + <onMatch>ACCEPT</onMatch> | ||
143 | + <onMismatch>DENY</onMismatch> | ||
144 | + </filter> | ||
145 | + </appender> | ||
146 | + | ||
147 | + <!-- | ||
148 | + <logger>用来设置某一个包或者具体的某一个类的日志打印级别、 | ||
149 | + 以及指定<appender>。<logger>仅有一个name属性, | ||
150 | + 一个可选的level和一个可选的addtivity属性。 | ||
151 | + name:用来指定受此logger约束的某一个包或者具体的某一个类。 | ||
152 | + level:用来设置打印级别,大小写无关:TRACE, DEBUG, INFO, WARN, ERROR, ALL 和 OFF, | ||
153 | + 还有一个特俗值INHERITED或者同义词NULL,代表强制执行上级的级别。 | ||
154 | + 如果未设置此属性,那么当前logger将会继承上级的级别。 | ||
155 | + addtivity:是否向上级logger传递打印信息。默认是true。 | ||
156 | + --> | ||
157 | + <!--<logger name="org.springframework.web" level="info"/>--> | ||
158 | + <!--<logger name="org.springframework.scheduling.annotation.ScheduledAnnotationBeanPostProcessor" level="INFO"/>--> | ||
159 | + <!-- | ||
160 | + 使用mybatis的时候,sql语句是debug下才会打印,而这里我们只配置了info,所以想要查看sql语句的话,有以下两种操作: | ||
161 | + 第一种把<root level="info">改成<root level="DEBUG">这样就会打印sql,不过这样日志那边会出现很多其他消息 | ||
162 | + 第二种就是单独给dao下目录配置debug模式,代码如下,这样配置sql语句会打印,其他还是正常info级别: | ||
163 | + --> | ||
164 | + | ||
165 | + | ||
166 | + <!-- | ||
167 | + root节点是必选节点,用来指定最基础的日志输出级别,只有一个level属性 | ||
168 | + level:用来设置打印级别,大小写无关:TRACE, DEBUG, INFO, WARN, ERROR, ALL 和 OFF, | ||
169 | + 不能设置为INHERITED或者同义词NULL。默认是DEBUG | ||
170 | + 可以包含零个或多个元素,标识这个appender将会添加到这个logger。 | ||
171 | + --> | ||
172 | + | ||
173 | + <!--开发环境:打印控制台--> | ||
174 | + <springProfile name="dev"> | ||
175 | + <root level="INFO"> | ||
176 | + <appender-ref ref="CONSOLE" /> | ||
177 | + <appender-ref ref="DEBUG_FILE" /> | ||
178 | + <appender-ref ref="INFO_FILE" /> | ||
179 | + <appender-ref ref="WARN_FILE" /> | ||
180 | + <appender-ref ref="ERROR_FILE" /> | ||
181 | + </root> | ||
182 | + </springProfile> | ||
183 | + | ||
184 | + <!--生产环境:输出到文件--> | ||
185 | + <springProfile name="pro"> | ||
186 | + <root level="info"> | ||
187 | + <appender-ref ref="CONSOLE" /> | ||
188 | + <appender-ref ref="DEBUG_FILE" /> | ||
189 | + <appender-ref ref="INFO_FILE" /> | ||
190 | + <appender-ref ref="ERROR_FILE" /> | ||
191 | + <appender-ref ref="WARN_FILE" /> | ||
192 | + </root> | ||
193 | + </springProfile> | ||
194 | + | ||
195 | +</configuration> |
@@ -13,6 +13,7 @@ import org.springframework.core.io.buffer.DataBuffer; | @@ -13,6 +13,7 @@ import org.springframework.core.io.buffer.DataBuffer; | ||
13 | import org.springframework.core.io.buffer.DataBufferFactory; | 13 | import org.springframework.core.io.buffer.DataBufferFactory; |
14 | import org.springframework.core.io.buffer.DataBufferUtils; | 14 | import org.springframework.core.io.buffer.DataBufferUtils; |
15 | import org.springframework.data.redis.core.StringRedisTemplate; | 15 | import org.springframework.data.redis.core.StringRedisTemplate; |
16 | +import org.springframework.http.HttpHeaders; | ||
16 | import org.springframework.http.HttpStatus; | 17 | import org.springframework.http.HttpStatus; |
17 | import org.springframework.http.server.reactive.ServerHttpRequest; | 18 | import org.springframework.http.server.reactive.ServerHttpRequest; |
18 | import org.springframework.http.server.reactive.ServerHttpResponse; | 19 | import org.springframework.http.server.reactive.ServerHttpResponse; |
@@ -134,8 +135,11 @@ public class WrapperResponseGlobalFilter implements GlobalFilter, Ordered { | @@ -134,8 +135,11 @@ public class WrapperResponseGlobalFilter implements GlobalFilter, Ordered { | ||
134 | boolean flag = false; | 135 | boolean flag = false; |
135 | String token = ""; | 136 | String token = ""; |
136 | if (!request.getPath().toString().contains(LOGIN)) { | 137 | if (!request.getPath().toString().contains(LOGIN)) { |
137 | - token = request.getHeaders().get("Authorization").toString(); | ||
138 | - token = token.substring(1, token.length() - 1); | 138 | + HttpHeaders rqHeader = request.getHeaders(); |
139 | + if(rqHeader.containsKey("Authorization")){ | ||
140 | + token = rqHeader.get("Authorization").toString(); | ||
141 | + token = token.substring(1, token.length() - 1); | ||
142 | + } | ||
139 | } | 143 | } |
140 | String redisKey = token.replace("Bearer ", ""); | 144 | String redisKey = token.replace("Bearer ", ""); |
141 | String json = stringRedisTemplate.opsForValue().get(redisKey); | 145 | String json = stringRedisTemplate.opsForValue().get(redisKey); |
src/main/resources/logback-spring.xml
已删除
100644 → 0
1 | -<?xml version="1.0" encoding="UTF-8"?> | ||
2 | -<configuration scan="ture" scanPeriod="60 seconds" debug="false"> | ||
3 | - | ||
4 | - <springProperty scope="context" name="appname" source="logback.appname"/> | ||
5 | - <springProperty scope="context" name="logdir" source="logback.logdir"/> | ||
6 | - <!--文件名--> | ||
7 | - <contextName>${logback.appname}</contextName> | ||
8 | - | ||
9 | - <!--输出到控制面板--> | ||
10 | - <appender name="consoleLog1" class="ch.qos.logback.core.ConsoleAppender"> | ||
11 | - <!-- layout输出方式输出--> | ||
12 | - <layout class="ch.qos.logback.classic.PatternLayout"> | ||
13 | - <pattern>%d [%thread] %-5level %logger{36} - %msg%n</pattern> | ||
14 | - </layout> | ||
15 | - </appender> | ||
16 | - <!--输出到控制面板--> | ||
17 | - <appender name="consoleLog" class="ch.qos.logback.core.ConsoleAppender"> | ||
18 | - <encoder> | ||
19 | - <pattern>%d [%thread] %-5level %logger{36} - %msg%n</pattern> | ||
20 | - </encoder> | ||
21 | - </appender> | ||
22 | - <!--输出info级别日志--> | ||
23 | - <appender name="fileInfoLog" class="ch.qos.logback.core.rolling.RollingFileAppender"> | ||
24 | - <filter class="ch.qos.logback.classic.filter.LevelFilter"> | ||
25 | - <!--过滤 Error--> | ||
26 | - <level>ERROR</level> | ||
27 | - <!--匹配到就禁止--> | ||
28 | - <onMatch>DENY</onMatch> | ||
29 | - <!--没有匹配到就允许--> | ||
30 | - <onMismatch>ACCEPT</onMismatch> | ||
31 | - </filter> | ||
32 | - <!--<File>../logs</File>--> | ||
33 | - <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> | ||
34 | - <FileNamePattern>${logdir}/info.${appname}.%d{yyyy-MM-dd}.log</FileNamePattern> | ||
35 | - <maxHistory>100</maxHistory> | ||
36 | - <totalSizeCap>100MB</totalSizeCap> | ||
37 | - </rollingPolicy> | ||
38 | - <encoder> | ||
39 | - <charset>UTF-8</charset> | ||
40 | - <pattern>%d [%thread] %-5level %logger{36} %line - %msg%n</pattern> | ||
41 | - </encoder> | ||
42 | - </appender> | ||
43 | - <!--输出Error级别日志--> | ||
44 | - <appender name="fileErrorLog" class="ch.qos.logback.core.rolling.RollingFileAppender"> | ||
45 | - <filter class="ch.qos.logback.classic.filter.LevelFilter"> | ||
46 | - <!--过滤 Error --> | ||
47 | - <level>ERROR</level> | ||
48 | - </filter> | ||
49 | - <!--<File>../logs</File>--> | ||
50 | - <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> | ||
51 | - <FileNamePattern>${logdir}/error.${appname}.%d{yyyy-MM-dd}.log</FileNamePattern> | ||
52 | - <maxHistory>100</maxHistory> | ||
53 | - <totalSizeCap>100MB</totalSizeCap> | ||
54 | - </rollingPolicy> | ||
55 | - <encoder> | ||
56 | - <charset>UTF-8</charset> | ||
57 | - <pattern>%d [%thread] %-5level %logger{36} %line - %msg%n</pattern> | ||
58 | - </encoder> | ||
59 | - </appender> | ||
60 | - <!--监控下列类的所有日志,定义输出级别--> | ||
61 | - <logger name="java.sql.PreparedStatement" level="DEBUG" additivity="false"> | ||
62 | - <appender-ref ref="consoleLog"/> | ||
63 | - </logger> | ||
64 | - <logger name="java.sql.Connection" level="DEBUG" additivity="false"> | ||
65 | - <appender-ref ref="consoleLog"/> | ||
66 | - </logger> | ||
67 | - <logger name="java.sql.Statement" level="DEBUG" additivity="false"> | ||
68 | - <appender-ref ref="consoleLog"/> | ||
69 | - </logger> | ||
70 | - <logger name="com.ibatis" level="DEBUG" additivity="false"> | ||
71 | - <appender-ref ref="consoleLog"/> | ||
72 | - </logger> | ||
73 | - <logger name="com.ibatis.common.jdbc.SimpleDataSource" level="DEBUG" additivity="false"> | ||
74 | - <appender-ref ref="consoleLog"/> | ||
75 | - </logger> | ||
76 | - <logger name="com.ibatis.common.jdbc.ScriptRunner" level="DEBUG" additivity="false"> | ||
77 | - <appender-ref ref="consoleLog"/> | ||
78 | - </logger> | ||
79 | - <logger name="com.ibatis.sqlmap.engine.impl.SqlMapClientDelegate" level="DEBUG" additivity="false"> | ||
80 | - <appender-ref ref="consoleLog"/> | ||
81 | - </logger> | ||
82 | - <!--输出--> | ||
83 | - <root level="INFO"> | ||
84 | - <appender-ref ref="consoleLog1"/> | ||
85 | - <!--<appender-ref ref="consoleLog"/>--> | ||
86 | - <appender-ref ref="fileInfoLog"/> | ||
87 | - <!--<appender-ref ref="fileErrorLog"/>--> | ||
88 | - </root> | ||
89 | - | ||
90 | -</configuration> |
-
请 注册 或 登录 后发表评论