Skip to content

HOWTO activate logging

Why do that

To debug or understand better the behavior of a Punchline using Spark/Pyspark runtime.


You need a punch-standalone installed with spark. The easiest way to work with Spark is to launch the job in foreground mode by using the punchlinectl command. For example if you have a job defined in application.hjson file, use the following command

punchlinectl start --punchline application.hjson -v

What to do

Configure the Spark

Spark use log4j. It is located in

# You will have to update those files


By default the delivered is configured only with ERROR level so as to limit standard output to the most relevant spark outputs.

Important loggers

  • org.apache.spark : the Spark loggers
  • org.thales.punch : the various punchplatform loggers