Skip to content

Commit a050285

Browse files
write test logs to files
1 parent 42c9ff9 commit a050285

File tree

1 file changed

+2
-2
lines changed
  • airbyte-cdk/java/airbyte-cdk/dependencies/src/main/resources

1 file changed

+2
-2
lines changed

airbyte-cdk/java/airbyte-cdk/dependencies/src/main/resources/log4j2-test.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
<Configuration status="INFO">
33
<Properties>
44
<!-- Set the LOG_SCRUB_PATTERN env var to a regex pattern to scrub the log messages of secrets or any other unwanted content. -->
5-
<Property name="default-pattern">%d{yyyy-MM-dd HH:mm:ss}{GMT+0} %highlight{%p} %C{1.}(%M):%L - %replace{%m}{$${env:LOG_SCRUB_PATTERN:-\*\*\*\*\*}}{*****}%n</Property>
5+
<Property name="default-pattern">%d{yyyy-MM-dd'T'HH:mm:ss}{GMT+0}`%highlight{%p}`%C{1.}(%M):%L`-`%replace{%m}{$${env:LOG_SCRUB_PATTERN:-\*\*\*\*\*}}{*****}%n</Property>
66
<!--Logs the timestamp and log_source/application name in the beginning of the line if it exists with a > separator, and then always the rest of the line.-->
7-
<Property name="simple-pattern">%d{yyyy-MM-dd HH:mm:ss}{GMT+0}%replace{ %X{log_source}}{^ -}{} > %replace{%m}{$${env:LOG_SCRUB_PATTERN:-\*\*\*\*\*}}{*****}%n</Property>
7+
<Property name="simple-pattern">%d{yyyy-MM-dd'T'HH:mm:ss}{GMT+0}`%replace{ %X{log_source}}{^ -}{}`>`%replace{%m}{$${env:LOG_SCRUB_PATTERN:-\*\*\*\*\*}}{*****}%n</Property>
88
<!-- Always log INFO by default. -->
99
<Property name="log-level">${sys:LOG_LEVEL:-${env:LOG_LEVEL:-INFO}}</Property>
1010
<Property name="logSubDir">${sys:airbyteLogSubDir:-${date:yyyy-MM-dd'T'HH:mm:ss}}</Property>

0 commit comments

Comments
 (0)