-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Maven dependencys: - Add slf4j & log4j2 provider & bridges scope into root pom.xml dependencyManagement - include: slf4j-api、log4j2、log4j2-slf4j-impl(slf4j provider)、xxx-to-slf4j - exclude(provided): logback、log4j1、commons-logging、slf4j-other-provider、log4j2-to-slf4j - Add slf4j & log4j2 & jcl-over-slf4j into root pom.xml dependencies - Exclude all logging system packages in maven-sheade-plugin SeaTunnel engine module: - Enhanced logging http endpoint to dynamically change log4j2 level - Config `hazelcast.logging.type: log4j2` SeaTunnel Dist module: - Use `maven-assembly-plugin` to copy slf4j & log4j2 & jcl-over-slf4j packages to `lib/logging` for use by starter shell Engine Starter module[flink、spark]: - Use `maven-dependency-plugin` to copy slf4j & log4j2 & jcl-over-slf4j packages to `target/logging-e2e` for use by E2E testcase - Add `lib/logging` directory to java classpath in start shell for use by starter class - Add jcl-over-slf4j package into shade jar - Config `config/log4j2-console.properties` on engine-client - Exclude log4j & commons-logging from shade jar Engine Starter module[seatunnel]: - Add `disruptor` jar and config `-Dlog4j2.contextSelector` to use asynchronous logger on engine-server - Config `config/log4j2-file.properties` on engine-server - Config `config/log4j2-console.properties` on engine-client - Add slf4j & log4j2 & jcl-over-slf4j package into starter shade jar Connector-v1 module[seatunnel-connector-flink-clickhouse]: - Exclude commons-logging from shade jar E2E: - Remove `log4j.properties` files - Add `log4j2-test.properties` output log to `STDOUT` or `STDERR` - Copy starter[flink、spark] `target/logging-e2e` into engine container - Improve execute job logs
- Loading branch information
Showing
61 changed files
with
809 additions
and
676 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
################################################################################ | ||
# 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. | ||
################################################################################ | ||
|
||
rootLogger.level = INFO | ||
rootLogger.appenderRef.consoleInfo.ref = consoleInfo | ||
rootLogger.appenderRef.consoleWarn.ref = consoleWarn | ||
|
||
appender.consoleInfo.name = consoleInfo | ||
appender.consoleInfo.type = CONSOLE | ||
appender.consoleInfo.target = SYSTEM_OUT | ||
appender.consoleInfo.layout.type = PatternLayout | ||
appender.consoleInfo.layout.pattern = %d{yyyy-MM-dd HH:mm:ss,SSS} %-5p %c - %m%n | ||
appender.consoleInfo.filter.acceptLtWarn.type = ThresholdFilter | ||
appender.consoleInfo.filter.acceptLtWarn.level = WARN | ||
appender.consoleInfo.filter.acceptLtWarn.onMatch = DENY | ||
appender.consoleInfo.filter.acceptLtWarn.onMismatch = ACCEPT | ||
|
||
appender.consoleWarn.name = consoleWarn | ||
appender.consoleWarn.type = CONSOLE | ||
appender.consoleWarn.target = SYSTEM_ERR | ||
appender.consoleWarn.layout.type = PatternLayout | ||
appender.consoleWarn.layout.pattern = %d{yyyy-MM-dd HH:mm:ss,SSS} %-5p %c - %m%n | ||
appender.consoleWarn.filter.acceptGteWarn.type = ThresholdFilter | ||
appender.consoleWarn.filter.acceptGteWarn.level = WARN | ||
appender.consoleWarn.filter.acceptGteWarn.onMatch = ACCEPT | ||
appender.consoleWarn.filter.acceptGteWarn.onMismatch = DENY |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
################################################################################ | ||
# 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. | ||
################################################################################ | ||
|
||
property.file_path = logs | ||
property.file_name = seatunnel | ||
property.file_split_size = 100MB | ||
property.file_count = 100 | ||
property.file_ttl = 7d | ||
|
||
rootLogger.level = INFO | ||
rootLogger.appenderRef.file.ref = fileAppender | ||
|
||
appender.file.name = fileAppender | ||
appender.file.type = RollingFile | ||
appender.file.fileName = ${file_path}/${file_name}.log | ||
appender.file.filePattern = ${file_path}/${file_name}.log.%d{yyyy-MM-dd}-%i | ||
appender.file.append = true | ||
appender.file.layout.type = PatternLayout | ||
appender.file.layout.pattern = %d{yyyy-MM-dd HH:mm:ss,SSS} %-5p %c - %m%n | ||
appender.file.policies.type = Policies | ||
appender.file.policies.time.type = TimeBasedTriggeringPolicy | ||
appender.file.policies.time.modulate = true | ||
appender.file.policies.size.type = SizeBasedTriggeringPolicy | ||
appender.file.policies.size.size = ${file_split_size} | ||
appender.file.strategy.type = DefaultRolloverStrategy | ||
appender.file.strategy.fileIndex = nomax | ||
appender.file.strategy.action.type = Delete | ||
appender.file.strategy.action.basepath = ${file_path} | ||
appender.file.strategy.action.maxDepth = 1 | ||
appender.file.strategy.action.condition.type = IfFileName | ||
appender.file.strategy.action.condition.glob = ${file_name}.log* | ||
appender.file.strategy.action.condition.nested_condition.type = IfAny | ||
appender.file.strategy.action.condition.nested_condition.lastModify.type = IfLastModified | ||
appender.file.strategy.action.condition.nested_condition.lastModify.age = ${file_ttl} | ||
appender.file.strategy.action.condition.nested_condition.fileCount.type = IfAccumulatedFileCount | ||
appender.file.strategy.action.condition.nested_condition.fileCount.exceeds = ${file_count} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.