File tree Expand file tree Collapse file tree 3 files changed +19
-2
lines changed
moss-web/src/main/resources Expand file tree Collapse file tree 3 files changed +19
-2
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "hints" : [],
3
+ "groups" : [],
4
+ "properties" : [
5
+ {
6
+ "name" : " logging.moss.path" ,
7
+ "type" : " java.lang.String" ,
8
+ "defaultValue" :" /opt/app/logs" ,
9
+ "description" :" logback files prefix."
10
+ }
11
+ ]
12
+ }
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ spring:
29
29
server :
30
30
port : 8080
31
31
32
+
32
33
eureka :
33
34
instance :
34
35
leaseRenewalIntervalInSeconds : 10
@@ -46,3 +47,7 @@ management.endpoints.health.show-details: true
46
47
47
48
# ## 替换成自己的skywalking URL
48
49
moss.skywalking.url : http://skywalking.com
50
+
51
+ logging :
52
+ moss :
53
+ path : /opt/app/logs
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
- <configuration scan =" true" >
3
- <property name =" logDir" value = " /opt/app/logs" />
2
+ <configuration scan =" true" >
3
+ <springProperty scope = " context " name =" logDir" source = " logging.moss.path " defaultValue = " /opt/app/logs" />
4
4
<springProperty scope =" context" name =" app.name" source =" spring.application.name" />
5
5
<appender name =" CONSOLE" class =" ch.qos.logback.core.ConsoleAppender" >
6
6
<layout class =" ch.qos.logback.classic.PatternLayout" >
You can’t perform that action at this time.
0 commit comments