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
Trueto enable compact logging,Falseto disable compact logging (full tracebacks), orNoneto reset to the default behavior (checking theSPDL_PIPELINE_COMPACT_LOGenvironment variable, and resorting toFalseif not specified).