add gadget logger

write gadget output in a file

close #61 
close #35 
Do we have a use-case for this default option?