Does Blender save a crash log???

I am working with a blender addon and hit a crash bug (that seems to come and go) so i was wondering does Blender have or can Blender be set to create a crash log??

for win
if there is one your system should show an error window before closing the task!
then log file will be added in the local folder and on error on system log !

happy bl