Skip to content

Commit

Permalink
add more log configs
Browse files Browse the repository at this point in the history
  • Loading branch information
mchades committed Apr 8, 2024
1 parent 5fbbf02 commit 0d1a4ab
Show file tree
Hide file tree
Showing 7 changed files with 157 additions and 1 deletion.
26 changes: 26 additions & 0 deletions catalogs/catalog-hadoop/src/test/resources/log4j2.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion catalogs/catalog-hive/src/test/resources/log4j2.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
26 changes: 26 additions & 0 deletions catalogs/catalog-jdbc-doris/src/test/resources/log4j2.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
26 changes: 26 additions & 0 deletions catalogs/catalog-jdbc-mysql/src/test/resources/log4j2.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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
26 changes: 26 additions & 0 deletions integration-test/src/test/resources/log4j2.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 0d1a4ab

Please sign in to comment.