File tree Expand file tree Collapse file tree 3 files changed +24
-17
lines changed Expand file tree Collapse file tree 3 files changed +24
-17
lines changed Original file line number Diff line number Diff line change 24
24
<dependency >
25
25
<groupId >org.springframework.boot</groupId >
26
26
<artifactId >spring-boot-starter-web</artifactId >
27
+ <exclusions >
28
+ <exclusion >
29
+ <groupId >org.springframework.boot</groupId >
30
+ <artifactId >spring-boot-starter-logging</artifactId >
31
+ </exclusion >
32
+ </exclusions >
27
33
</dependency >
28
34
29
- <!-- <dependency> -- >
30
- <!-- <groupId>org.springframework.boot</groupId> -- >
31
- <!-- <artifactId>spring-boot-starter-log4j2</artifactId> -- >
32
- <!-- </dependency> -- >
35
+ <dependency >
36
+ <groupId >org.springframework.boot</groupId >
37
+ <artifactId >spring-boot-starter-log4j2</artifactId >
38
+ </dependency >
33
39
34
40
<dependency >
35
41
<groupId >org.springframework.boot</groupId >
Original file line number Diff line number Diff line change 1
- debug =true
2
1
3
- spring.output.ansi.enabled =detect
4
-
5
- logging.file.name =run.log
6
- logging.file.path =./
7
-
8
- logging.level.com.didispace =debug
9
-
10
- logging.logback.rollingpolicy.clean-history-on-start =false
11
- logging.logback.rollingpolicy.file-name-pattern =
12
- logging.logback.rollingpolicy.max-history =7
13
- logging.logback.rollingpolicy.max-file-size =10MB
14
- logging.logback.rollingpolicy.total-size-cap =0B
2
+ logging.config =classpath:log4j2.xml
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <Configuration status =" INFO" >
3
+ <Appenders >
4
+ <Console name =" Console" target =" SYSTEM_OUT" >
5
+ <PatternLayout pattern =" %d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n" />
6
+ </Console >
7
+ </Appenders >
8
+ <Loggers >
9
+ <Root level =" INFO" >
10
+ <AppenderRef ref =" Console" />
11
+ </Root >
12
+ </Loggers >
13
+ </Configuration >
You can’t perform that action at this time.
0 commit comments