From 0d1a4ab834e3eb8535e9d32ca54839666efac68f Mon Sep 17 00:00:00 2001 From: mchades Date: Mon, 8 Apr 2024 16:44:33 +0800 Subject: [PATCH] add more log configs --- .../src/test/resources/log4j2.properties | 26 +++++++++++++++++++ .../src/test/resources/log4j2.properties | 2 +- .../src/test/resources/log4j2.properties | 26 +++++++++++++++++++ .../src/test/resources/log4j2.properties | 26 +++++++++++++++++++ .../src/test/resources/log4j2.properties | 26 +++++++++++++++++++ .../src/test/resources/log4j2.properties | 26 +++++++++++++++++++ .../src/test/resources/log4j2.properties | 26 +++++++++++++++++++ 7 files changed, 157 insertions(+), 1 deletion(-) diff --git a/catalogs/catalog-hadoop/src/test/resources/log4j2.properties b/catalogs/catalog-hadoop/src/test/resources/log4j2.properties index f9a032b711b..fbbca01f583 100644 --- a/catalogs/catalog-hadoop/src/test/resources/log4j2.properties +++ b/catalogs/catalog-hadoop/src/test/resources/log4j2.properties @@ -31,3 +31,29 @@ rootLogger.level = info # Root logger referring to console and file appenders rootLogger.appenderRef.stdout.ref = consoleLogger rootLogger.appenderRef.file.ref = fileLogger + +# Log files location for testcontainers +property.testcontainers.logPath = catalog-hive/build/testcontainers.log + +# File appender configuration for testcontainers +appender.testcontainersFile.type = File +appender.testcontainersFile.name = testcontainersLogger +appender.testcontainersFile.fileName = build/testcontainers.log +appender.testcontainersFile.layout.type = PatternLayout +appender.testcontainersFile.layout.pattern = %d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %-5p %c - %m%n + +# Logger for testcontainers +logger.testcontainers.name = org.testcontainers +logger.testcontainers.level = debug +logger.testcontainers.appenderRef.file.ref = testcontainersLogger + +logger.tc.name = tc +logger.tc.level = debug +logger.tc.appenderRef.file.ref = testcontainersLogger + +logger.docker.name = com.github.dockerjava +logger.docker.level = warn +logger.docker.appenderRef.file.ref = testcontainersLogger + +logger.http.name = com.github.dockerjava.zerodep.shaded.org.apache.hc.client5.http.wire +logger.http.level = off \ No newline at end of file diff --git a/catalogs/catalog-hive/src/test/resources/log4j2.properties b/catalogs/catalog-hive/src/test/resources/log4j2.properties index e7a8b8409c7..459bf0b0cd1 100644 --- a/catalogs/catalog-hive/src/test/resources/log4j2.properties +++ b/catalogs/catalog-hive/src/test/resources/log4j2.properties @@ -38,7 +38,7 @@ property.testcontainers.logPath = catalog-hive/build/testcontainers.log # File appender configuration for testcontainers appender.testcontainersFile.type = File appender.testcontainersFile.name = testcontainersLogger -appender.testcontainersFile.fileName = /Users/mchades/projects/datastrato/graviton/catalogs/catalog-hive/build/testcontainers.log +appender.testcontainersFile.fileName = build/testcontainers.log appender.testcontainersFile.layout.type = PatternLayout appender.testcontainersFile.layout.pattern = %d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %-5p %c - %m%n diff --git a/catalogs/catalog-jdbc-doris/src/test/resources/log4j2.properties b/catalogs/catalog-jdbc-doris/src/test/resources/log4j2.properties index 7db40f053da..c25a46d9f9a 100644 --- a/catalogs/catalog-jdbc-doris/src/test/resources/log4j2.properties +++ b/catalogs/catalog-jdbc-doris/src/test/resources/log4j2.properties @@ -31,3 +31,29 @@ rootLogger.level = info # Root logger referring to console and file appenders rootLogger.appenderRef.stdout.ref = consoleLogger rootLogger.appenderRef.file.ref = fileLogger + +# Log files location for testcontainers +property.testcontainers.logPath = catalog-hive/build/testcontainers.log + +# File appender configuration for testcontainers +appender.testcontainersFile.type = File +appender.testcontainersFile.name = testcontainersLogger +appender.testcontainersFile.fileName = build/testcontainers.log +appender.testcontainersFile.layout.type = PatternLayout +appender.testcontainersFile.layout.pattern = %d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %-5p %c - %m%n + +# Logger for testcontainers +logger.testcontainers.name = org.testcontainers +logger.testcontainers.level = debug +logger.testcontainers.appenderRef.file.ref = testcontainersLogger + +logger.tc.name = tc +logger.tc.level = debug +logger.tc.appenderRef.file.ref = testcontainersLogger + +logger.docker.name = com.github.dockerjava +logger.docker.level = warn +logger.docker.appenderRef.file.ref = testcontainersLogger + +logger.http.name = com.github.dockerjava.zerodep.shaded.org.apache.hc.client5.http.wire +logger.http.level = off \ No newline at end of file diff --git a/catalogs/catalog-jdbc-mysql/src/test/resources/log4j2.properties b/catalogs/catalog-jdbc-mysql/src/test/resources/log4j2.properties index 64f59af33da..ae87b2988bc 100644 --- a/catalogs/catalog-jdbc-mysql/src/test/resources/log4j2.properties +++ b/catalogs/catalog-jdbc-mysql/src/test/resources/log4j2.properties @@ -31,3 +31,29 @@ rootLogger.level = info # Root logger referring to console and file appenders rootLogger.appenderRef.stdout.ref = consoleLogger rootLogger.appenderRef.file.ref = fileLogger + +# Log files location for testcontainers +property.testcontainers.logPath = catalog-hive/build/testcontainers.log + +# File appender configuration for testcontainers +appender.testcontainersFile.type = File +appender.testcontainersFile.name = testcontainersLogger +appender.testcontainersFile.fileName = build/testcontainers.log +appender.testcontainersFile.layout.type = PatternLayout +appender.testcontainersFile.layout.pattern = %d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %-5p %c - %m%n + +# Logger for testcontainers +logger.testcontainers.name = org.testcontainers +logger.testcontainers.level = debug +logger.testcontainers.appenderRef.file.ref = testcontainersLogger + +logger.tc.name = tc +logger.tc.level = debug +logger.tc.appenderRef.file.ref = testcontainersLogger + +logger.docker.name = com.github.dockerjava +logger.docker.level = warn +logger.docker.appenderRef.file.ref = testcontainersLogger + +logger.http.name = com.github.dockerjava.zerodep.shaded.org.apache.hc.client5.http.wire +logger.http.level = off \ No newline at end of file diff --git a/catalogs/catalog-jdbc-postgresql/src/test/resources/log4j2.properties b/catalogs/catalog-jdbc-postgresql/src/test/resources/log4j2.properties index 1d0e389f590..ac4d156b020 100644 --- a/catalogs/catalog-jdbc-postgresql/src/test/resources/log4j2.properties +++ b/catalogs/catalog-jdbc-postgresql/src/test/resources/log4j2.properties @@ -31,3 +31,29 @@ rootLogger.level = info # Root logger referring to console and file appenders rootLogger.appenderRef.stdout.ref = consoleLogger rootLogger.appenderRef.file.ref = fileLogger + +# Log files location for testcontainers +property.testcontainers.logPath = catalog-hive/build/testcontainers.log + +# File appender configuration for testcontainers +appender.testcontainersFile.type = File +appender.testcontainersFile.name = testcontainersLogger +appender.testcontainersFile.fileName = build/testcontainers.log +appender.testcontainersFile.layout.type = PatternLayout +appender.testcontainersFile.layout.pattern = %d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %-5p %c - %m%n + +# Logger for testcontainers +logger.testcontainers.name = org.testcontainers +logger.testcontainers.level = debug +logger.testcontainers.appenderRef.file.ref = testcontainersLogger + +logger.tc.name = tc +logger.tc.level = debug +logger.tc.appenderRef.file.ref = testcontainersLogger + +logger.docker.name = com.github.dockerjava +logger.docker.level = warn +logger.docker.appenderRef.file.ref = testcontainersLogger + +logger.http.name = com.github.dockerjava.zerodep.shaded.org.apache.hc.client5.http.wire +logger.http.level = off \ No newline at end of file diff --git a/catalogs/catalog-lakehouse-iceberg/src/test/resources/log4j2.properties b/catalogs/catalog-lakehouse-iceberg/src/test/resources/log4j2.properties index fb812ba011e..7684fa0998f 100644 --- a/catalogs/catalog-lakehouse-iceberg/src/test/resources/log4j2.properties +++ b/catalogs/catalog-lakehouse-iceberg/src/test/resources/log4j2.properties @@ -31,3 +31,29 @@ rootLogger.level = info # Root logger referring to console and file appenders rootLogger.appenderRef.stdout.ref = consoleLogger rootLogger.appenderRef.file.ref = fileLogger + +# Log files location for testcontainers +property.testcontainers.logPath = catalog-hive/build/testcontainers.log + +# File appender configuration for testcontainers +appender.testcontainersFile.type = File +appender.testcontainersFile.name = testcontainersLogger +appender.testcontainersFile.fileName = build/testcontainers.log +appender.testcontainersFile.layout.type = PatternLayout +appender.testcontainersFile.layout.pattern = %d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %-5p %c - %m%n + +# Logger for testcontainers +logger.testcontainers.name = org.testcontainers +logger.testcontainers.level = debug +logger.testcontainers.appenderRef.file.ref = testcontainersLogger + +logger.tc.name = tc +logger.tc.level = debug +logger.tc.appenderRef.file.ref = testcontainersLogger + +logger.docker.name = com.github.dockerjava +logger.docker.level = warn +logger.docker.appenderRef.file.ref = testcontainersLogger + +logger.http.name = com.github.dockerjava.zerodep.shaded.org.apache.hc.client5.http.wire +logger.http.level = off \ No newline at end of file diff --git a/integration-test/src/test/resources/log4j2.properties b/integration-test/src/test/resources/log4j2.properties index 1a9cdd56c97..3d740a1c2c6 100644 --- a/integration-test/src/test/resources/log4j2.properties +++ b/integration-test/src/test/resources/log4j2.properties @@ -31,3 +31,29 @@ rootLogger.level = info # Root logger referring to console and file appenders rootLogger.appenderRef.stdout.ref = consoleLogger rootLogger.appenderRef.file.ref = fileLogger + +# Log files location for testcontainers +property.testcontainers.logPath = catalog-hive/build/testcontainers.log + +# File appender configuration for testcontainers +appender.testcontainersFile.type = File +appender.testcontainersFile.name = testcontainersLogger +appender.testcontainersFile.fileName = build/testcontainers.log +appender.testcontainersFile.layout.type = PatternLayout +appender.testcontainersFile.layout.pattern = %d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %-5p %c - %m%n + +# Logger for testcontainers +logger.testcontainers.name = org.testcontainers +logger.testcontainers.level = debug +logger.testcontainers.appenderRef.file.ref = testcontainersLogger + +logger.tc.name = tc +logger.tc.level = debug +logger.tc.appenderRef.file.ref = testcontainersLogger + +logger.docker.name = com.github.dockerjava +logger.docker.level = warn +logger.docker.appenderRef.file.ref = testcontainersLogger + +logger.http.name = com.github.dockerjava.zerodep.shaded.org.apache.hc.client5.http.wire +logger.http.level = off \ No newline at end of file