write both logging error Pyspark and Python exceptions

seefoods
Valued Contributor

Hello guyz, 

Happy new year and best wishes for all of us. I am catching both Pyspark and Python exceptions but i want to write this logging error inside a delta table when i logging. Someone knows the best practise for this ? 

Thanks 

Cordially,