質問編集履歴

2

LogBControloler.class.getName() → LogAControloler.class.getName()

2020/10/11 12:04

投稿

rhino
rhino

スコア1

test CHANGED
File without changes
test CHANGED
@@ -148,7 +148,7 @@
148
148
 
149
149
  System.setProperty("dir-path", "logA");
150
150
 
151
- Logger logger = LoggerFactory.getLogger(LogBControloler.class.getName());
151
+ Logger logger = LoggerFactory.getLogger(LogAControloler.class.getName());
152
152
 
153
153
  logger.error("errorログです");
154
154
 

1

コードの修正

2020/10/11 12:04

投稿

rhino
rhino

スコア1

test CHANGED
File without changes
test CHANGED
@@ -62,32 +62,6 @@
62
62
 
63
63
 
64
64
 
65
- <!-- INFO 設定 -->
66
-
67
- <RollingFile name="INFO" append="true" fileName="${log-path}info/${logfile}"
68
-
69
- filePattern="${log-path}info/${logfile-archive-path}${logfile-archive}">
70
-
71
- <PatternLayout>
72
-
73
- <pattern>${pattern2}</pattern>
74
-
75
- </PatternLayout>
76
-
77
- <Policies>
78
-
79
- <SizeBasedTriggeringPolicy size="1KB"/>
80
-
81
- <TimeBasedTriggeringPolicy />
82
-
83
- </Policies>
84
-
85
- <DefaultRolloverStrategy max="12"/>
86
-
87
- </RollingFile>
88
-
89
-
90
-
91
65
  <!-- ERROR 設定 -->
92
66
 
93
67
  <RollingFile name="ERROR" append="true" fileName="${log-path}${pg-path}${logfile}"
@@ -125,8 +99,6 @@
125
99
  <Root level="trace">
126
100
 
127
101
  <AppenderRef ref="CONSOLE" level="info"/>
128
-
129
- <AppenderRef ref="INFO" level="info"/>
130
102
 
131
103
  <AppenderRef ref="ERROR" level="error"/>
132
104