Added log to ignore
Added log-directory global
Added logging setup.