Fixed bad newlines in output for std output and emacs.

I added a emacs_logger.
Still need to cleanup std_logger.