From 23d5fb0647e8fd59a4abc85847163c03b7be96a6 Mon Sep 17 00:00:00 2001 From: Ruslan Iushchenko Date: Fri, 13 Oct 2023 15:09:07 +0200 Subject: [PATCH] #644 Fix noisy logs for log4j2 when running unit tests. --- .../src/test/resources/log4j2.properties | 27 ++++++++++++------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/spark-cobol/src/test/resources/log4j2.properties b/spark-cobol/src/test/resources/log4j2.properties index 775b79fd..0120d2bb 100644 --- a/spark-cobol/src/test/resources/log4j2.properties +++ b/spark-cobol/src/test/resources/log4j2.properties @@ -22,13 +22,20 @@ log4j.appender.console.layout.ConversionPattern=%d{yy/MM/dd HH:mm:ss} %p %c{1}: log4j.appender.console.Threshold=ERROR # Turn off noisy loggers in unit tests -log4j.logger.org.apache.hadoop.util.NativeCodeLoader=ERROR -log4j.logger.org.apache.spark.executor.Executor=OFF -log4j.logger.org.apache.spark.scheduler.TaskSetManager=OFF -log4j.logger.org.apache.spark.sql.SparkSession$Builder=ERROR -log4j.logger.org.apache.spark.util.Utils=ERROR -log4j.logger.za.co.absa.cobrix.cobol.reader.index.IndexGenerator$=OFF -log4j.logger.za.co.absa.cobrix.spark.cobol.source.index.IndexBuilder$=ERROR -log4j.logger.za.co.absa.cobrix.spark.cobol.source.streaming.FileStreamer=ERROR -log4j.logger.za.co.absa.cobrix.spark.cobol.utils.FileUtils$=OFF -log4j.logger.za.co.absa.cobrix.spark.cobol.utils.FileUtils=OFF +logger.hadoop_native_loader.name = org.apache.hadoop.util.NativeCodeLoader +logger.hadoop_native_loader.level = OFF + +logger.org_spark_executor.name = org.apache.spark.executor.Executor +logger.org_spark_executor.level = OFF + +logger.org_spark_task_set_manager.name = org.apache.spark.scheduler.TaskSetManager +logger.org_spark_task_set_manager.level = OFF + +logger.cobrix_index_generator.name = za.co.absa.cobrix.cobol.reader.index.IndexGenerator$ +logger.cobrix_index_generator.level = OFF + +logger.cobrix_file_utils1.name = za.co.absa.cobrix.cobol.utils.FileUtils$ +logger.cobrix_file_utils1.level = OFF + +logger.cobrix_file_utils2.name = za.co.absa.cobrix.cobol.utils.FileUtils +logger.cobrix_file_utils2.level = OFF