How to create logs for an addon

Hey guys,

I’m having an issue with the deconz addon and I want to be able to see all of the logs generated as when the crash happens so much data is generated I cannot see it all in time before it is deleted. How could I save the logs of the addon into a file so that i can view them later?

Thank you in advance!

found a solution ?