-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CALCITE-4858] Use Log4j2 instead of unsupported Log4j (1.x) in tests #2587
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
~ Licensed to the Apache Software Foundation (ASF) under one or more | ||
~ contributor license agreements. See the NOTICE file distributed with | ||
~ this work for additional information regarding copyright ownership. | ||
~ The ASF licenses this file to you under the Apache License, Version 2.0 | ||
~ (the "License"); you may not use this file except in compliance with | ||
~ the License. You may obtain a copy of the License at | ||
~ | ||
~ http://www.apache.org/licenses/LICENSE-2.0 | ||
~ | ||
~ Unless required by applicable law or agreed to in writing, software | ||
~ distributed under the License is distributed on an "AS IS" BASIS, | ||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
~ See the License for the specific language governing permissions and | ||
~ limitations under the License. | ||
--> | ||
<Configuration> | ||
<Appenders> | ||
<Console name="A1" target="SYSTEM_OUT"> | ||
<PatternLayout | ||
pattern="%d [%t] %-5p - %m%n"/> | ||
</Console> | ||
</Appenders> | ||
|
||
<Loggers> | ||
<Root level="INFO"> | ||
<AppenderRef ref="A1"/> | ||
</Root> | ||
<logger name="org.apache.cassandra" level="off"/> | ||
<logger name="com.datastax" level="WARN"/> | ||
<!-- Avoid showing connection errors on cassandra shutdown --> | ||
<logger name="com.datastax.driver.core.ControlConnection" level="off"/> | ||
</Loggers> | ||
</Configuration> |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
~ Licensed to the Apache Software Foundation (ASF) under one or more | ||
~ contributor license agreements. See the NOTICE file distributed with | ||
~ this work for additional information regarding copyright ownership. | ||
~ The ASF licenses this file to you under the Apache License, Version 2.0 | ||
~ (the "License"); you may not use this file except in compliance with | ||
~ the License. You may obtain a copy of the License at | ||
~ | ||
~ http://www.apache.org/licenses/LICENSE-2.0 | ||
~ | ||
~ Unless required by applicable law or agreed to in writing, software | ||
~ distributed under the License is distributed on an "AS IS" BASIS, | ||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
~ See the License for the specific language governing permissions and | ||
~ limitations under the License. | ||
--> | ||
<Configuration> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm wondering log4j2 doesn't support properties file now? why change to xml though There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As of version 2.4, Log4j supports configuration via properties files (we are on 2.13.3). The syntax is however different so in any case it was necessary to update the files. Moreover, I vaguely remember that I had some problems in the past with some Log4j2 features and property files, which I didn't have with XML. Although I couldn't find a proper reference I have the impression that XML syntax is better supported. |
||
<Appenders> | ||
<Console name="A1" target="SYSTEM_OUT"> | ||
<PatternLayout | ||
pattern="%d [%t] %-5p - %m%n"/> | ||
</Console> | ||
</Appenders> | ||
|
||
<Loggers> | ||
<Root level="INFO"> | ||
<AppenderRef ref="A1"/> | ||
</Root> | ||
<!-- [CALCITE-2519] Silence ERROR logs from CalciteException, SqlValidatorException during tests --> | ||
<logger name="org.apache.calcite.runtime.CalciteException" level="FATAL"/> | ||
<logger name="org.apache.calcite.sql.validate.SqlValidatorException" level="ERROR"/> | ||
<logger name="org.apache.calcite.plan.RexImplicationChecker" level="FATAL"/> | ||
<logger name="org.apache.calcite.sql.test.SqlOperatorBaseTest" level="FATAL"/> | ||
<!-- [CALCITE-4858] Silence anything but errors --> | ||
<logger name="org.apache.calcite.plan.VisitorDataContext" level="ERROR"/> | ||
<logger name="org.apache.calcite.avatica" level="ERROR"/> | ||
<logger name="org.eclipse.jetty" level="ERROR"/> | ||
<logger name="org.apache.calcite.sql.parser" level="ERROR"/> | ||
</Loggers> | ||
</Configuration> |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
~ Licensed to the Apache Software Foundation (ASF) under one or more | ||
~ contributor license agreements. See the NOTICE file distributed with | ||
~ this work for additional information regarding copyright ownership. | ||
~ The ASF licenses this file to you under the Apache License, Version 2.0 | ||
~ (the "License"); you may not use this file except in compliance with | ||
~ the License. You may obtain a copy of the License at | ||
~ | ||
~ http://www.apache.org/licenses/LICENSE-2.0 | ||
~ | ||
~ Unless required by applicable law or agreed to in writing, software | ||
~ distributed under the License is distributed on an "AS IS" BASIS, | ||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
~ See the License for the specific language governing permissions and | ||
~ limitations under the License. | ||
--> | ||
<Configuration> | ||
<Appenders> | ||
<Console name="A1" target="SYSTEM_OUT"> | ||
<PatternLayout | ||
pattern="%d [%t] %-5p - %m%n"/> | ||
</Console> | ||
</Appenders> | ||
|
||
<Loggers> | ||
<Root level="INFO"> | ||
<AppenderRef ref="A1"/> | ||
</Root> | ||
<logger name="org.apache.calcite.adapter.druid" level="ERROR"/> | ||
</Loggers> | ||
</Configuration> |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
~ Licensed to the Apache Software Foundation (ASF) under one or more | ||
~ contributor license agreements. See the NOTICE file distributed with | ||
~ this work for additional information regarding copyright ownership. | ||
~ The ASF licenses this file to you under the Apache License, Version 2.0 | ||
~ (the "License"); you may not use this file except in compliance with | ||
~ the License. You may obtain a copy of the License at | ||
~ | ||
~ http://www.apache.org/licenses/LICENSE-2.0 | ||
~ | ||
~ Unless required by applicable law or agreed to in writing, software | ||
~ distributed under the License is distributed on an "AS IS" BASIS, | ||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
~ See the License for the specific language governing permissions and | ||
~ limitations under the License. | ||
--> | ||
<Configuration> | ||
<Appenders> | ||
<Console name="A1" target="SYSTEM_OUT"> | ||
<PatternLayout | ||
pattern="%d [%t] %-5p - %m%n"/> | ||
</Console> | ||
</Appenders> | ||
|
||
<Loggers> | ||
<Root level="INFO"> | ||
<AppenderRef ref="A1"/> | ||
</Root> | ||
<!-- Only report errors coming from Geode or its dependencies--> | ||
<logger name="org.apache.geode" level="ERROR"/> | ||
<logger name="org.eclipse.jetty" level="ERROR"/> | ||
<!-- Change level to INFO to see OQL queries --> | ||
<logger name="org.apache.calcite.adapter.geode" level="WARN"/> | ||
</Loggers> | ||
</Configuration> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you have follow up jira on this? maybe add a TODO to reference that ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just created https://issues.apache.org/jira/browse/CALCITE-4862