Skip to content

Commit

Permalink
add log of testcontainers
Browse files Browse the repository at this point in the history
  • Loading branch information
mchades committed Apr 8, 2024
1 parent 1f0c5dd commit 5fbbf02
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion catalogs/catalog-hive/src/test/resources/log4j2.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 5fbbf02

Please sign in to comment.