add meta_stack field to log the stack trace

Hi, i implement a new field meta_stack to enable saving the stack for debug (if you think it's a good idea you can merge :smile: )