Print traceback to log file rather than stdout.
Ignore ``.settings`` folder.