Added automatic stack tracing to logger
Large change to logging for all classes. Sorry.