Skip to content

Commit b4e7cc0

Browse files
committed
Move log4j properties to xml and remove unused elasticsearch.yml file
(cherry picked from commit b07fc7c)
1 parent 610d9a7 commit b4e7cc0

File tree

3 files changed

+42
-30
lines changed

3 files changed

+42
-30
lines changed

src/test/resources/elasticsearch.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

src/test/resources/log4j.properties

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/test/resources/log4j.xml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<!-- Licensed to Elasticsearch under one or more contributor
3+
license agreements. See the NOTICE file distributed with this work for additional
4+
information regarding copyright ownership. ElasticSearch licenses this file to you
5+
under the Apache License, Version 2.0 (the "License"); you may not use this
6+
file except in compliance with the License. You may obtain a copy of the
7+
License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by
8+
applicable law or agreed to in writing, software distributed under the License
9+
is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
10+
KIND, either express or implied. See the License for the specific language
11+
governing permissions and limitations under the License. -->
12+
13+
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
14+
15+
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
16+
<appender name="console" class="org.apache.log4j.ConsoleAppender">
17+
<param name="Target" value="System.out" />
18+
<layout class="org.apache.log4j.PatternLayout">
19+
<param name="ConversionPattern" value="%d %-5p %c{1} - %m%n" />
20+
</layout>
21+
</appender>
22+
23+
<logger name="org.elasticsearch">
24+
<level value="info" />
25+
</logger>
26+
27+
<logger name="org.elasticsearch.cloud.aws">
28+
<level value="trace" />
29+
</logger>
30+
<logger name="org.elasticsearch.discovery.aws">
31+
<level value="trace" />
32+
</logger>
33+
<logger name="org.elasticsearch.repositories.aws">
34+
<level value="trace" />
35+
</logger>
36+
37+
<root>
38+
<priority value="info" />
39+
<appender-ref ref="console" />
40+
</root>
41+
42+
</log4j:configuration>

0 commit comments

Comments
 (0)