Adding stacks to logging, inline helper functions