setup emacs logging