Add spec and doc to stactrace function.
Merge pull request #526 from fdevibe/format_stacktraces_in_logs-spec_and_docs

Add spec and doc to stactrace function.