Add a logging helper that gives the callstack.