Skip to content

Commit

Permalink
#644 Fix noisy logs for log4j2 when running unit tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
yruslan committed Oct 13, 2023
1 parent 9a3f8a1 commit 23d5fb0
Showing 1 changed file with 17 additions and 10 deletions.
27 changes: 17 additions & 10 deletions spark-cobol/src/test/resources/log4j2.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 23d5fb0

Please sign in to comment.