spdl.pipeline.config.set_compact_log

set_compact_log(value: bool | None) None[source]

Set the compact log setting.

Compact logging mode reduces the verbosity of task exception logs by showing only essential information (exception type, message, and source location) in a single line, instead of full stack traces. This is useful in environments where full tracebacks can be noisy.

Parameters:

value – The compact log setting. Can be True to enable compact logging, False to disable compact logging (full tracebacks), or None to reset to the default behavior (checking the SPDL_PIPELINE_COMPACT_LOG environment variable, and resorting to False if not specified).