diff --git a/catalogs/catalog-hive/src/test/resources/log4j2.properties b/catalogs/catalog-hive/src/test/resources/log4j2.properties index 3022eaf1c20..e7a8b8409c7 100644 --- a/catalogs/catalog-hive/src/test/resources/log4j2.properties +++ b/catalogs/catalog-hive/src/test/resources/log4j2.properties @@ -15,7 +15,7 @@ appender.console.name = consoleLogger appender.console.layout.type = PatternLayout appender.console.layout.pattern = %d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n -# Log files location +# Log files location for the application property.logPath = ${sys:gravitino.log.path:-catalog-hive/build/hive-integration-test.log} # File appender configuration @@ -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 = /Users/mchades/projects/datastrato/graviton/catalogs/catalog-hive/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