Skip to content

Commit adb8c17

Browse files
committed
HTTP-155 switch on CI logging
Signed-off-by: davidradl <[email protected]>
1 parent 7aefc35 commit adb8c17

File tree

1 file changed

+44
-20
lines changed

1 file changed

+44
-20
lines changed

tools/ci/log4j.properties

Lines changed: 44 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,22 @@
1+
################################################################################
2+
# Licensed to the Apache Software Foundation (ASF) under one
3+
# or more contributor license agreements. See the NOTICE file
4+
# distributed with this work for additional information
5+
# regarding copyright ownership. The ASF licenses this file
6+
# to you under the Apache License, Version 2.0 (the
7+
# "License"); you may not use this file except in compliance
8+
# with the License. You may obtain a copy of the License at
19
#
2-
# /*
3-
# * Licensed to the Apache Software Foundation (ASF) under one
4-
# * or more contributor license agreements. See the NOTICE file
5-
# * distributed with this work for additional information
6-
# * regarding copyright ownership. The ASF licenses this file
7-
# * to you under the Apache License, Version 2.0 (the
8-
# * "License"); you may not use this file except in compliance
9-
# * with the License. You may obtain a copy of the License at
10-
# *
11-
# * http://www.apache.org/licenses/LICENSE-2.0
12-
# *
13-
# * Unless required by applicable law or agreed to in writing, software
14-
# * distributed under the License is distributed on an "AS IS" BASIS,
15-
# * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16-
# * See the License for the specific language governing permissions and
17-
# * limitations under the License.
18-
# */
10+
# http://www.apache.org/licenses/LICENSE-2.0
1911
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
################################################################################
2018

21-
# Set root logger level to OFF to not flood build logs
22-
# set manually to INFO for debugging purposes
23-
rootLogger.level = OFF
19+
rootLogger.level = INFO
2420
rootLogger.appenderRef.out.ref = ConsoleAppender
2521

2622
# -----------------------------------------------------------------------------
@@ -42,6 +38,34 @@ appender.file.layout.type = PatternLayout
4238
appender.file.layout.pattern = %d{HH:mm:ss,SSS} [%20t] %-5p %-60c %x - %m%n
4339
appender.file.createOnDemand = true
4440

41+
# Reduce most flink logs except for connector specific loggers
42+
logger.flink.name = org.apache.flink
43+
logger.flink.level = WARN
44+
logger.flinkconnector.name = org.apache.flink.connector
45+
logger.flinkconnector.level = INFO
46+
47+
4548
# suppress the irrelevant (wrong) warnings from the netty channel handler
4649
logger.netty.name = org.jboss.netty.channel.DefaultChannelPipeline
4750
logger.netty.level = ERROR
51+
52+
# Logger configuration for containers, by default this is off
53+
# If you want to investigate test failures, overwrite the level as above
54+
logger.container.name = container
55+
logger.container.level = OFF
56+
logger.container.additivity = false # This prevents messages from being logged by the root logger
57+
logger.container.appenderRef.containerappender.ref = ContainerLogger
58+
59+
logger.flinkcontainer.name = container.flink
60+
logger.flinkcontainer.level = WARN
61+
62+
logger.flinkenv.name = org.apache.flink.connector.testframe.container.FlinkContainerTestEnvironment
63+
logger.flinkenv.level = WARN
64+
logger.flinkenv.additivity = false # This prevents messages from being logged by the root logger
65+
logger.flinkenv.appenderRef.containerappender.ref = ContainerLogger
66+
67+
appender.containerappender.name = ContainerLogger
68+
appender.containerappender.type = CONSOLE
69+
appender.containerappender.target = SYSTEM_ERR
70+
appender.containerappender.layout.type = PatternLayout
71+
appender.containerappender.layout.pattern = [%c{1}] %m%n

0 commit comments

Comments
 (0)